if (deletedObject.getCommunityName() == null) return;
  public void removeNode(DefaultMutableTreeNode node) {    // remove from previous community    CommunityTreeObject deletedObject =      (CommunityTreeObject)node.getUserObject();    String entityName = deletedObject.toString();    String communityName = (String)communities.remove(entityName);    if (communityName == null)      return;    if (!deletedObject.isHost())       CommunityDBUtils.deleteEntityInfo(communityName, entityName);  }