- StringBuilder registerBody = new StringBuilder();
- registerBody.append(format("%s %s = this.%s.registerRoot(%s);\n",
- HierarchicalRuntimeBeanRegistration.class
- .getCanonicalName(), hierachchicalRegistration
- .getName(), rootRuntimeBeanRegistratorField
- .getName(), rbParameter.getName()));
- registerBody.append(format("return new %s(%s);\n",
- rootFtlFile.getFullyQualifiedName(),
- hierachchicalRegistration.getName()));
+ String registerBody = format("%s %s = this.%s.registerRoot(%s);\n"
+ + "return new %s(%2$s);\n",
+ HierarchicalRuntimeBeanRegistration.class.getCanonicalName(),
+ hierachicalRegistration.getName(),
+ rootRuntimeBeanRegistratorField.getName(),
+ rbParameter.getName(),
+ rootFtlFile.getFullyQualifiedName());