String removeName = "remove" + capitalizedName;
JMethod remove = templateClass.method(JMod.PUBLIC, getCodeModel().VOID, removeName);
addAccessorDoc(remove, field, "Remover");
setDeprecatedAnnotationAndJavadoc(remove, field);
JBlock removeBody = remove.body();
removeBody.invoke("remove").arg(fieldField);
// Getter method with mode.
String getterName = getGetterName(type, capitalizedName);
JMethod getterWithMode = templateClass.method(JMod.PUBLIC, type, getterName);
addAccessorDoc(getterWithMode, field, "Getter");