} else if (area.getParentComponent() != getParentComponent()) {
String exceptionMessage = String.format(
"Tried to manually add area %s to area %s, but parent components do not match.",
name,
getName());
throw new ModelStructureException(exceptionMessage);
} else {
this.areas.put(name, area);
}
}