/**
   * Initializes the java objects.
   *
   * @param p0 the category
   * @param p1 the category java objects list
   */
  static void initialize_java_objects(java.lang.Object p0, java.lang.Object p1) {

    org.apache.xerces.dom.DeepNodeListImpl l = (org.apache.xerces.dom.DeepNodeListImpl) p1;

    if (l != null) {

      LogHandler.log(LogHandler.INFO_LOG_LEVEL, "Initialize java objects.");
      org.apache.xerces.dom.NodeImpl n = (org.apache.xerces.dom.NodeImpl) l.item(0);

      if (n != null) {

        Item c = (Item) p0;

        if (c != null) {

          Item o = null;

          // Sometimes, a super category sets a java object that is not
          // wanted in a sub category. In this case, it can be set to null:
          // <javaobject category="null"/>
          if (CategoryHandler.is_java_object_null(n) == false) {

            o = new Item();
            ItemHandler.initialize_item_containers(o);
            CategoryHandler.initialize_java_object(o, n);

          } else {

            o = null;
          }

          c.java_object = o;

        } else {

          LogHandler.log(
              LogHandler.ERROR_LOG_LEVEL,
              "Could not initialize java objects. The category is null.");
        }

      } else {

        LogHandler.log(
            LogHandler.INFO_LOG_LEVEL,
            "Could not initialize java objects. The java object node is null.");
      }

    } else {

      LogHandler.log(
          LogHandler.ERROR_LOG_LEVEL,
          "Could not initialize java objects. The java objects list is null.");
    }
  }