AttributeComponentInformation attributeComponentInformation = isRestrictedAttribute(name, componentHelper);
if (!attributeComponentInformation.isRestricted()) {
continue;
}
String value = (String) attributeMap.get(name);
EnableAttribute enable = null;
try {
enable = (EnableAttribute)
ih.createElement(
owner.getProject(), new EnableAttributeConsumer(),
attributeComponentInformation.getComponentName());
} catch (BuildException ex) {
throw new BuildException(
"Unsupported attribute " + attributeComponentInformation.getComponentName());
}
if (enable == null) {
continue;
}
value = owner.getProject().replaceProperties(value); // FixMe: need to make config
if (!enable.isEnabled(owner, value)) {
return false;
}
}
return true;
}