ApamCapability entCap, Validator validator) {
/*
* add the attribute coming from "above" if not already instantiated and
* heritable
*/
ApamCapability group = entCap.getGroup();
if (group != null && group.getProperties() != null) {
if (group.getKind().equals(ComponentKind.IMPLEMENTATION)
&& !group.getProperties().containsKey(CST.IMPLNAME)) {
group.putAttr(CST.IMPLNAME, group.getName(),validator);
}
group.freeze();
for (String prop : group.getProperties().keySet()) {
if (ret.get(prop) == null
&& Attribute.isInheritedAttribute(prop)) {
ret.put(prop, group.getProperties().get(prop));
}
}
}
return group;
}