groupDef.setDefaultHidden(group.isHiddenByDefault());
groupDef.setOrder(groupOrderIndex++);
List<JAXBElement<? extends ConfigurationProperty>> groupProperties = group.getConfigurationProperty();
int propertyOrderIndex = 0;
for (JAXBElement<? extends ConfigurationProperty> jaxbProperty : groupProperties) {
ConfigurationProperty uncastedProperty = jaxbProperty.getValue();
PropertyDefinition propertyDefinition = parseProperty(uncastedProperty, propertyOrderIndex,
defaultConfiguration);
if (configurationDefinition != null) {
propertyDefinition.setPropertyGroupDefinition(groupDef);
configurationDefinition.put(propertyDefinition);
propertyOrderIndex++;
}
}
}
int propertyOrderIndex = 0;
for (JAXBElement<? extends ConfigurationProperty> jaxbProperty : properties) {
ConfigurationProperty uncastedProperty = jaxbProperty.getValue();
PropertyDefinition propertyDefinition = parseProperty(uncastedProperty, propertyOrderIndex,
defaultConfiguration);
if (configurationDefinition != null) {
configurationDefinition.put(propertyDefinition);
propertyOrderIndex++;