throw new RuntimeException(e);
}
String code = get("baseCode.code");
Model.populate(Params.sub("baseCode"), baseCode);
if (!codeGenerator.isValidCode(code)) {
code = codeGenerator.gen(new CodeFixture(baseCode));
if (codeGenerator.isValidCode(code)) {
baseCode.setCode(code);
} else {
return forward(new Action("edit"), "system.codeGen.failure");
}