Character character;
try {
character = em.getReference(Character.class, id);
character.getId();
} catch (EntityNotFoundException enfe) {
throw new NonexistentEntityException("The character with id " + id + " no longer exists.", enfe);
}
List<String> illegalOrphanMessages = null;
Collection<EquippedSkill> equippedSkillCollectionOrphanCheck = character.getEquippedSkillCollection();
for (EquippedSkill equippedSkillCollectionOrphanCheckEquippedSkill : equippedSkillCollectionOrphanCheck) {
if (illegalOrphanMessages == null) {