@SuppressWarnings("unchecked")
List<GroovyClass> groovyClasses = cu.getClasses();
Map<String, Bytecode> bytecodes = new HashMap<String,Bytecode>();
for (GroovyClass groovyClass : groovyClasses) {
String name = groovyClass.getName();
bytecodes.put(name, new Bytecode(name, groovyClass.getBytes()));
}
Code code;
if (sourceSet.size() == 1) {
code = new DefaultSingleSourceCode(sources.getName(), compiledSourceInfos, bytecodes);