for (final ICompilationUnit compilationUnit : packageFragment.getCompilationUnits()) {
compilationUnits.add(compilationUnit);
}
}
final Converter converter = new Converter();
parser.createASTs(compilationUnits.toArray(new ICompilationUnit[compilationUnits.size()]), new String[0], converter, new NullProgressMonitor());
final IFolder folder = fragmentRoot.getJavaProject().getProject().getFolder("out");
folder.create(IResource.FORCE, true, null);
converter.generateTo(folder);
} catch (final Exception e) {
e.printStackTrace();
}
return null;