instance.types = types;
instance.baseType = baseType;
instance.implName = implName;
instance.packageName = packageName;
instance.printWriter = printWriter;
instance.commonTypes = new CommonTypes(types);
try {
instance.generateClass();
} catch(UnableToCompleteException uatc) {
logger.log(TreeLogger.ERROR, "Failed to generate "+className, uatc.getCause());