for(Map.Entry<FeatureId, String> excluded : dep.getExcludedFeatures().entrySet()) {
final ElementNode excludeE = addElement(depE, Element.EXCLUDE.getLocalName(), ns);
addAttribute(excludeE, Attribute.FEATURE_ID, excluded.getKey().toString());
if(excluded.getValue() != null) {
addAttribute(excludeE, Attribute.PARENT_REF, excluded.getValue());
for(Map.Entry<FeatureId, FeatureConfig> entry : dep.getIncludedFeatures().entrySet()) {
final ElementNode includeE = addElement(depE, Element.INCLUDE.getLocalName(), ns);
addAttribute(includeE, Attribute.FEATURE_ID, entry.getKey().toString());
final FeatureConfig fc = entry.getValue();
if(fc.getParentRef() != null) {