private AssociationSetEnd clone(AssociationSetEnd setEnd) { if (setEnd == null) { return null; } AssociationSetEnd newSetEnd = new AssociationSetEnd(); newSetEnd.setAnnotationAttributes(setEnd.getAnnotationAttributes()); newSetEnd.setAnnotationElements(setEnd.getAnnotationElements()); newSetEnd.setDocumentation(setEnd.getDocumentation()); newSetEnd.setEntitySet(setEnd.getEntitySet()); newSetEnd.setRole(setEnd.getRole()); return newSetEnd; }