@PortalTransactional
@Override
public IPersonAttributesGroupTestGroupDefinition updatePersonAttributesGroupTestGroupDefinition(IPersonAttributesGroupTestGroupDefinition personAttributesGroupTestGroupDefinition) {
Validate.notNull(personAttributesGroupTestGroupDefinition, "personAttributesGroupTestGroupDefinition can not be null");
final IPersonAttributesGroupTestGroupDefinition persistentDefinition;
final EntityManager entityManager = this.getEntityManager();
if (entityManager.contains(personAttributesGroupTestGroupDefinition)) {
persistentDefinition = personAttributesGroupTestGroupDefinition;
} else {
persistentDefinition = entityManager.merge(personAttributesGroupTestGroupDefinition);