code: public void encodeData(AsnOutputStream asnOs) throws MAPException {
          if (this.responseTimeCategory == null) {
              throw new MAPException("Error while encoding " + _PrimitiveName
                      + " the mandatory parameter responseTimeCategory is not defined");
          }
          try {
              asnOs.writeInteger(Tag.CLASS_UNIVERSAL, Tag.ENUMERATED, this.responseTimeCategory.getCategory());
          } catch (IOException e) {
              throw new MAPException("IOException when encoding responseTimeCategory: ", e);
          } catch (AsnException e) {
              throw new MAPException("AsnException when encoding responseTimeCategory: ", e);
          }
      }
docs: /*
  (non-Javadoc)
  
  @see org.restcomm.protocols.ss7.map.api.primitives.MAPAsnPrimitive#encodeData
  (org.mobicents.protocols.asn.AsnOutputStream)