communityTree.addNode(node, entityName, entityType);
communityTree.addNode(node, entityName, entityType, communityName);
  private void addToTree(DefaultMutableTreeNode node, String communityName) {    ArrayList entityNames = CommunityDBUtils.getEntities(communityName);    if (entityNames == null || entityNames.size() == 0)      return;    for (int i = 0; i < entityNames.size(); i++) {      String entityName = (String)entityNames.get(i);      String entityType = CommunityDBUtils.getMemberType(entityName);      DefaultMutableTreeNode newNode =         communityTree.addNode(node, entityName, entityType);      // tell our tree model listener to simply add the node to its hashtable      treeModelListener.addNode(newNode, communityName);      if (entityType.equals("Community"))        addToTree(newNode, entityName);    }  }