CompilerRequestor compilerRequestor = new CompilerRequestor(byteCode);
Compiler compiler = new Compiler(new NameEnvironment(sources, byteCode),
DefaultErrorHandlingPolicies.proceedWithAllProblems(),
compilerOptions,
compilerRequestor,
new DefaultProblemFactory(Locale.getDefault()));
// source files must be wrapped with an eclipse CompilationUnit
List<ICompilationUnit> compilationUnits = new ArrayList<ICompilationUnit>(sources.size());
for (Map.Entry<String, File> entry : sources.entrySet()) {
compilationUnits.add(new CompilationUnit(entry.getKey(), entry.getValue()));