code: public static JMFType parse(Reader rdr) {
      JSParser oneParser = new JSParser(rdr);
      try {
        return oneParser.Schema();
      } catch(ParseException e) {
        // No FFDC needed
            IllegalArgumentException ee = new IllegalArgumentException(e.getMessage());
            ee.initCause(e);
            throw ee;
      } finally {
        try {
          rdr.close();
        } catch (IOException e) {
              // No FFDC needed
        }
      }
    }
docs: Parse an Reader stream, returning a JMFType tree, or null on error.  This can be
  made into a JMFSchema by calling <b>JMFRegistry.instance.createJMFSchema</b>.