throws GroupDefinitionAlreadyExistsException, GroupDefinitionCreateException {
try {
validate(newGroupDefinition, null);
} catch (GroupDefinitionException gde) {
throw new GroupDefinitionCreateException(gde.getMessage());
}
try {
entityManager.persist(newGroupDefinition);
} catch (Exception e) {
throw new GroupDefinitionCreateException(e);
}
return newGroupDefinition;
}