Hi
I would use a PBO to do that, see FBObject class and I assume there is at least a JUnit test for this feature.
Edit.: You should fix your (few) spelling mistakes in the home page of your project and "authors abandon all their rights" is a bit frightening, I would not abandon my paternity rights and it would not be the best way to ensure free open source softwares will remain free open source forever, there is the GPL for that.