code: public void init(String type, String res, Document document, boolean checkSeq, boolean checkValids) {
          super.init(type, type, null, (char) 0, 0, new StringBuffer(res),
              document, new HashMap<>(),
              checkValids ? new HashMap<>() : null);
          if (checkSeq)
              checkSegSeq(1);
      }
docs: -------------------------------------------------------------------------------------------