// get the fields to add
XmlModule xmlModule = jar.getModule();
for (XmlField fieldNew : getFields(module, index)) {
XmlField fieldOrg = getField(fieldNew.getIndex(), xmlModule.getFields());
if (fieldOrg == null) continue;
fieldOrg.setColumn(fieldNew.getColumn());
fieldOrg.setEnabled(fieldNew.isEnabled());
fieldOrg.setFieldType(fieldNew.getFieldType());
fieldOrg.setIndex(fieldNew.getIndex());
fieldOrg.setMaximumLength(fieldNew.getMaximumLength());
fieldOrg.setModuleReference(fieldNew.getModuleReference());
fieldOrg.setName(fieldNew.getName());
fieldOrg.setOverwritable(fieldNew.isOverwritable());
fieldOrg.setReadonly(fieldNew.isReadonly());
fieldOrg.setSearchable(fieldNew.isSearchable());
fieldOrg.setUiOnly(fieldNew.isUiOnly());
fieldOrg.setValueType(fieldNew.getValueType());
logger.info(DcResources.getText("msgUpgradedModuleXAltered",
new String[]{xmlModule.getName(), fieldOrg.getName()}));
}
save(xmlModule, jarfile);
}
}