Project.createSingleton(null);
ClassUnit classUnit= new ClassUnit(Project.singleton, Project.singleton.getSignature(className));
classUnit.setClassFile(new FileObject(new File(args[1])));
Parser parser= new Parser(classUnit);
TypeDeclaration typeDecl= parser.parse();
DragomeJavaScriptGenerator dragomeJavaScriptGenerator= new DragomeJavaScriptGenerator(Project.singleton);
dragomeJavaScriptGenerator.setOutputStream(new PrintStream(new FileOutputStream(new File("/tmp/webapp.js"))));
dragomeJavaScriptGenerator.visit(typeDecl);
FileInputStream fis= new FileInputStream(new File("/tmp/webapp.js"));
String md5= org.apache.commons.codec.digest.DigestUtils.md5Hex(fis);
System.out.println(md5);
}