if (myDeletedEntityNamesInObjectStore != null) {
if (myDeletedEntityNamesInObjectStore != null && !myDeletedEntityNamesInObjectStore.isEmpty()) {
  public EOModelMap toMap() {    EOModelMap modelMap = myModelMap.cloneModelMap();    modelMap.setString("EOModelVersion", myVersion, true); //$NON-NLS-1$    modelMap.setString("adaptorName", myAdaptorName, true); //$NON-NLS-1$    modelMap.put("connectionDictionary", myConnectionDictionary); //$NON-NLS-1$    Set entities = new TreeSet(PropertyListComparator.AscendingPropertyListComparator);    Set entitiesWithSharedObjects = new TreeSet(PropertyListComparator.AscendingPropertyListComparator);    Iterator entitiesIter = myEntities.iterator();    while (entitiesIter.hasNext()) {      EOEntity entity = (EOEntity) entitiesIter.next();      EOModelMap entityMap = new EOModelMap();      entityMap.setString("className", entity.getClassName(), true); //$NON-NLS-1$      EOEntity parent = entity.getParent();      String parentName = (parent == null) ? null : parent.getName();      entityMap.setString("parent", parentName, true); //$NON-NLS-1$      entityMap.setString("name", entity.getName(), true); //$NON-NLS-1$      entities.add(entityMap);      if (entity.hasSharedObjects()) {        entitiesWithSharedObjects.add(entity.getName());      }    }    modelMap.setSet("entities", entities, true); //$NON-NLS-1$    modelMap.setSet("entitiesWithSharedObjects", entitiesWithSharedObjects, true); //$NON-NLS-1$    Map internalInfoMap = modelMap.getMap("internalInfo"); //$NON-NLS-1$    if (internalInfoMap == null) {      internalInfoMap = new HashMap();      modelMap.put("internalInfo", internalInfoMap); //$NON-NLS-1$    }    if (myDeletedEntityNamesInObjectStore != null) {      internalInfoMap.put("_deletedEntityNamesInObjectStore", myDeletedEntityNamesInObjectStore); //$NON-NLS-1$    }    modelMap.put("userInfo", getUserInfo()); //$NON-NLS-1$    return modelMap;  }