bodyBuilder.appendFormalLine("uiModel.addAttribute(\"itemId\", "
+ (compositePk ? "conversionService.convert(" : "")
+ idFieldName + (compositePk ? ", String.class)" : "") + ");");
bodyBuilder.appendFormalLine("return \"" + controllerPath + "/show\";");
final MethodMetadataBuilder methodBuilder = new MethodMetadataBuilder(
getId(), Modifier.PUBLIC, methodName, STRING, parameterTypes,
parameterNames, bodyBuilder);
methodBuilder.setAnnotations(annotations);
return methodBuilder;
}