}
protected void refreshRelationshipsForEntity(EOEntity entity) {
TreeViewer treeViewer = getTreeViewer();
if (treeViewer != null) {
treeViewer.refresh(entity, true);
Object[] expandedElements = treeViewer.getExpandedElements();
for (int expandedElementNum = 0; expandedElementNum < expandedElements.length; expandedElementNum++) {
if (expandedElements[expandedElementNum] instanceof EORelationshipPath) {
EORelationshipPath relationshipPath = (EORelationshipPath) expandedElements[expandedElementNum];
if (relationshipPath.getChildRelationship().getEntity().equals(entity)) {