public ClassSpec getClassSpec(String name) throws IOException {
File file = new File(classesRoot, name);
if (file.exists()) {
return toClassSpec(file);
} else {
CompilerAdapterFactory factory = CompilerAdapterFactory.getInstance();
file = factory.findAndCompile(sourcesRoot, name, classesRoot);
return file != null ? toClassSpec(file) : null;
}
}