illegalOrphanMessages = new ArrayList<String>();
}
illegalOrphanMessages.add("This Attribute (" + attribute + ") cannot be destroyed since the Attributepoint " + attributepointCollectionOrphanCheckAttributepoint + " in its attributepointCollection field has a non-nullable attribute field.");
}
if (illegalOrphanMessages != null) {
throw new IllegalOrphanException(illegalOrphanMessages);
}
Profession profession = attribute.getProfession();
if (profession != null) {
profession.getAttributeCollection().remove(attribute);
profession = em.merge(profession);