code: public static @Nonnull XQuery parse(@WillClose InputStream in) throws IOException {
          return parse(new InputSource(in));
      }
docs: Parses an XML source and returns an {@link XQuery} object representing the root of
  the document.
  
  @param in
  {@link InputStream} of the XML document
  @return {@link XQuery} representing the root of the parsed document
  @throws IOException
  if the XML source could not be read or parsed for any reason