}
children = entityChildren.toArray();
} else if (_parentElement instanceof EORelationship) {
EORelationship relationship = (EORelationship) _parentElement;
Set<AbstractEOAttributePath> relationshipPathChildren = new TreeSet<AbstractEOAttributePath>(new EOSortableEOModelObjectComparator());
relationshipPathChildren.addAll(Arrays.asList(new EORelationshipPath(null, relationship).getChildren()));
children = relationshipPathChildren.toArray();
} else if (_parentElement instanceof EORelationshipPath) {
EORelationshipPath relationshipPath = (EORelationshipPath) _parentElement;
Set<AbstractEOAttributePath> relationshipPathChildren = new TreeSet<AbstractEOAttributePath>(new EOSortableEOModelObjectComparator());
relationshipPathChildren.addAll(Arrays.asList(relationshipPath.getChildren()));
children = relationshipPathChildren.toArray();
} else if (_parentElement instanceof EOStoredProcedure) {
EOStoredProcedure storedProcedure = (EOStoredProcedure) _parentElement;
Set<EOArgument> arguments = new TreeSet<EOArgument>(new EOSortableEOModelObjectComparator());
arguments.addAll(storedProcedure.getArguments());