code: static public XObject create(Object val, XPathContext xctxt)
    {
      return XObjectFactory.create(val, xctxt);
    }
docs: Create the right XObject based on the type of the object passed.
  This function <emph>can</emph> make an XObject that exposes DOM Nodes, NodeLists, and
  NodeIterators to the XSLT stylesheet as node-sets.
  
  @param val The java object which this object will wrap.
  @param xctxt The XPath context.
  
  @return the right XObject based on the type of the object passed.