} else if (o instanceof AssetComponent) agentMenu.show(tree, x, y); else if (o instanceof AgentComponent)
} else if (o instanceof AssetComponent) {    } else if (o instanceof AgentComponent)
  private void displayMenu(MouseEvent e) {    // the path to the node the mouse is pointing at    TreePath selPath = tree.getPathForLocation(e.getX(), e.getY());    if (selPath == null)      return;    tree.setSelectionPath(selPath);    int x = e.getX();    int y = e.getY();    // show menu for type of node selected    Object o = nodeToComponent.get(selPath.getLastPathComponent());    if (o instanceof SocietyComponent)      societyMenu.show(tree, x, y);    else if (o instanceof ContainerComponent) {      String name = ((ModifiableComponent)o).getShortName();      if (name.equals("Binders"))        bindersMenu.show(tree, x, y);      else if (name.equals("Plugins"))        pluginsMenu.show(tree, x, y);      else if (name.equals("Other Components"))        componentsMenu.show(tree, x, y);      else if (name.equals("Relationships"))        relationshipsMenu.show(tree, x, y);      else if (name.equals("Property Groups"))        propertyGroupsMenu.show(tree, x, y);    } else if (o instanceof AssetComponent)      agentMenu.show(tree, x, y);    else if (o instanceof AgentComponent)      agentMenu.show(tree, x, y);    else if (o instanceof RelationshipComponent)      agentMenu.show(tree, x, y);    else if (o instanceof ComplexRecipeComponent) {      if (o instanceof CompleteAgentRecipe)         completeAgentMenu.show(tree, x, y);      else if (o instanceof ComponentCollectionRecipe)        componentCollectionRecipeMenu.show(tree, x, y);    } else if (o instanceof BaseComponent) {      // Need to see if the Parent is a ComponentCollectionRecipe.      if (nodeToComponent.get(selPath.getParentPath().getLastPathComponent()) instanceof ComponentCollectionRecipe)         baseRecipeComponentMenu.show(tree, x, y);      else        baseComponentMenu.show(tree, x, y);    } else if (o == null) {      if (log.isInfoEnabled()) {	log.info("No menu item for null component (root?).");      }    } else if (log.isInfoEnabled())      log.info("No menu for component of class: " + o);  }