public Class compile(JavaSource javaSource) {
try {
final DiagnosticCollector<JavaFileObject> errs = new DiagnosticCollector<JavaFileObject>();
JdkCompileTask compileTask = new JdkCompileTask(
new JdkCompilerClassLoader(this.getClass().getClassLoader()),
options);
String fullName = javaSource.getPackageName() + "." + javaSource.getClassName();
Class newClass = compileTask.compile(fullName, javaSource.getSource(), errs);
return newClass;
} catch (JdkCompileException ex) {