if(!configCustoms.isInheritConfigs()) {
defConfigsE = addElement(parent, Element.DEFAULT_CONFIGS.getLocalName(), ns);
addAttribute(defConfigsE, Attribute.INHERIT, FALSE);
if(!configCustoms.isInheritModelOnlyConfigs()) {
if(defConfigsE == null) {
defConfigsE = addElement(parent, Element.DEFAULT_CONFIGS.getLocalName(), ns);
if(configCustoms.hasFullModelsExcluded()) {
if(defConfigsE == null) {
defConfigsE = addElement(parent, Element.DEFAULT_CONFIGS.getLocalName(), ns);
for (Map.Entry<String, Boolean> excluded : configCustoms.getFullModelsExcluded().entrySet()) {
final ElementNode exclude = addElement(defConfigsE, Element.EXCLUDE.getLocalName(), ns);
addAttribute(exclude, Attribute.MODEL, excluded.getKey());
if(configCustoms.hasFullModelsIncluded()) {
if(defConfigsE == null) {
defConfigsE = addElement(parent, Element.DEFAULT_CONFIGS.getLocalName(), ns);
final String[] array = configCustoms.getFullModelsIncluded().toArray(new String[configCustoms.getFullModelsIncluded().size()]);
Arrays.sort(array);
for(String modelName : array) {
if(configCustoms.hasExcludedConfigs()) {
if(defConfigsE == null) {
defConfigsE = addElement(parent, Element.DEFAULT_CONFIGS.getLocalName(), ns);
for(ConfigId configId : configCustoms.getExcludedConfigs()) {