code: protected void verifyCriticalFlag(TLVElement element) throws TLVParserException {
          if (!element.isNonCritical()) {
              throw new TLVParserException("Unknown critical TLV element with tag=0x" + Integer.toHexString(element.getType()) + " encountered");
          }
      }
docs: Checks if the TLV element is critical or not.
  
  @param element
  TLV element to check.
  
  @throws TLVParserException
  when unknown critical TLV element is encountered.