}
methodBody.append("return builder.toString();\n");
methodBody.append("} catch (Exception e) { throw new RuntimeException(e); } \n");
methodBody.append("}\n");
logger.trace(methodBody.toString());
cc.addMethod(CtNewMethod.make(methodBody.toString(), cc));
} catch (NotFoundException | CannotCompileException e) {
logger.error(e.getMessage(), "Compiled body is:\n" + methodBody.toString());
throw Throwables.propagate(e);
}