}
@Override
public Requirement addIdentityRequirement(String symbolicName, VersionRange range, Map<String, Object> atts, Map<String, String> dirs) {
IllegalArgumentAssertion.assertNotNull(symbolicName, "symbolicName");
Requirement ireq = addRequirement(IdentityNamespace.IDENTITY_NAMESPACE, symbolicName);
if (range != null) {
ireq.getAttributes().put(IdentityNamespace.CAPABILITY_VERSION_ATTRIBUTE, range);
}
if (atts != null) {
ireq.getAttributes().putAll(atts);
}
if (dirs != null) {
ireq.getDirectives().putAll(dirs);
}
return ireq;
}