code: public static <T> SNAXParser<T> createParser(XMLInputFactory factory, NodeModel<T> model) {
          return new SNAXParser<T>(factory, model);
      }
docs: Return a new SNAXParser using the specified model.
  @param factory XMLInputFactory to use when creating input streams
  @param model NodeModel that defines the state machine to use when parsing
  @return a new parser