/**
   * This call tells the Spoon Plugin to make it's modification to the particular area in Spoon
   * (category). The current possible areas are: trans-graph, job-graph, database_dialog and spoon.
   *
   * @param category Area to modify
   * @param container The XUL-document for the particular category.
   * @throws XulException
   */
  public void applyToContainer(String category, XulDomContainer container) throws XulException {
    if (category.equals(SPOON_CATEGORY)) {
      this.container = container;
      container.registerClassLoader(getClass().getClassLoader());
      container.loadOverlay(OVERLAY_FILE_PATH);
      container.addEventHandler(this.getMenuHandler());

      // refresh menus
      this.getSpoon().enableMenus();
    }
  }