final String defaultUserMessage = "Center can not assigned as a child";
throw new GeneralPlatformDomainRuleException("error.msg.center.cannot.be.assigned.as.child", defaultUserMessage,
group.getId());
}
if (hasGroupAsMember(group)) { throw new GroupExistsInCenterException(getId(), group.getId()); }
if (group.isChildGroup()) {
final String defaultUserMessage = "Group is already associated with a center";
throw new GeneralPlatformDomainRuleException("error.msg.group.already.associated.with.center", defaultUserMessage, group
.getParent().getId(), group.getId());