final Map settings = getJdtSettings();
final IProblemFactory problemFactory =
new DefaultProblemFactory(Locale.getDefault());
final ICompilerRequestor requestor = getCompilerRequestor(units, problemBuffer);
ICompilationUnit[] compilationUnits = new ICompilationUnit[units.length];
for (int i = 0; i < compilationUnits.length; i++)
{
compilationUnits[i] = new CompilationUnit(units[i].getSourceCode(), units[i].getName());