log.debug("compiling");
unit.compile(Phases.CLASS_GENERATION);
final List classes = unit.getClasses();
for (final Iterator it = classes.iterator(); it.hasNext();) {
final GroovyClass clazz = (GroovyClass) it.next();
final byte[] bytes = clazz.getBytes();
pStore.write(ConversionUtils.convertClassToResourcePath(clazz.getName()), bytes);
}
} catch (final MultipleCompilationErrorsException e) {
final ErrorCollector col = e.getErrorCollector();
final Collection warnings = col.getWarnings();
if (warnings != null) {