code: public AreaImpl findSuperArea(AreaImpl sub, Vector<AreaImpl> selected)
      {
      	/* This is a simple testing SuperArea implementation. It groups each 
      	 * subarea with its first sibling area.*/ 
          AreaImpl ret = new AreaImpl(0, 0, 0, 0);
          ret.setPage(sub.getPage());
          AreaImpl sibl = (AreaImpl) sub.getNextSibling();
          selected.removeAllElements();
          selected.add(sub);
          if (sibl != null)
          {
              selected.add(sibl);
          }
          return ret;
      }
docs: Starts with a specified subarea and finds all the subareas that
  may be joined with the first one. Returns an empty area and the vector
  of the areas inside. The subareas are not automatically added to the
  new area because this would cause their removal from the parent area.
  @param sub the subnode to start with
  @param selected a vector that will be filled with the selected subnodes
  that should be contained in the new area
  @return the new empty area