+ identifierMethodName + "());");
bodyBuilder.appendFormalLine(entityIdsName
+ ".add(KeyFactory.createKey("
+ collectionElementType.getSimpleTypeName()
+ ".class.getName(), entity." + identifierMethodName + "()));");
bodyBuilder.indentRemove();
bodyBuilder.appendFormalLine("}");
bodyBuilder.appendFormalLine(localEnitiesName + ".add(entity);");
bodyBuilder.indentRemove();
bodyBuilder.appendFormalLine("}");
bodyBuilder.appendFormalLine("this." + entityCollectionName + " = "