relationshipMap.setString("destination", myDestination.getName(), true);
if (myDestination != null) { relationshipMap.setString("destination", myDestination.getName(), true); }
  public EOModelMap toMap() {    EOModelMap relationshipMap = myRelationshipMap.cloneModelMap();    relationshipMap.setString("destination", myDestination.getName(), true); //$NON-NLS-1$    relationshipMap.setString("definition", myDefinition, true); //$NON-NLS-1$    relationshipMap.setBoolean("isMandatory", myMandatory); //$NON-NLS-1$    relationshipMap.setBoolean("isToMany", myToMany); //$NON-NLS-1$    if (myJoinSemantic != null) {      relationshipMap.setString("joinSemantic", myJoinSemantic.getID(), true); //$NON-NLS-1$    }    relationshipMap.setString("name", myName, true); //$NON-NLS-1$    if (myDeleteRule != null && myDeleteRule != EODeleteRule.NULLIFY) {      relationshipMap.setString("deleteRule", myDeleteRule.getID(), true); //$NON-NLS-1$    }    relationshipMap.setBoolean("ownsDestination", myOwnsDestination); //$NON-NLS-1$    relationshipMap.setBoolean("propagatesPrimaryKey", myPropagatesPrimaryKey); //$NON-NLS-1$    relationshipMap.setInteger("numberOfToManyFaultsToBatchFetch", myNumberOfToManyFaultsToBatchFetch); //$NON-NLS-1$    List joins = new LinkedList();    Iterator joinsIter = myJoins.iterator();    while (joinsIter.hasNext()) {      EOJoin join = (EOJoin) joinsIter.next();      EOModelMap joinMap = join.toMap();      joins.add(joinMap);    }    relationshipMap.setList("joins", joins, true); //$NON-NLS-1$    relationshipMap.setMap("userInfo", getUserInfo(), true); //$NON-NLS-1$    return relationshipMap;  }