}
public void register(SCAObject child) {
if (child.isSystem()) {
if (systemChildren.get(child.getName()) != null) {
DuplicateNameException e =
new DuplicateNameException("A system child is already registered with the name");
e.setIdentifier(child.getName());
e.addContextName(getName());
throw e;
}
systemChildren.put(child.getName(), child);
} else {
if (children.get(child.getName()) != null) {
DuplicateNameException e = new DuplicateNameException("A child is already registered with the name");
e.setIdentifier(child.getName());
e.addContextName(getName());
throw e;
}
children.put(child.getName(), child);
}
if (child instanceof Service) {