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