private static final String findClassPackage (FileObject file) {
try {
InputStream in = file.getInputStream();
try {
ClassFile cf = new ClassFile(in,false);
ClassName cn = cf.getName();
return cn.getPackage();
} finally {
in.close ();
}
} catch (FileNotFoundException fnf) {
//Ignore it