code: public void encodeData(AsnOutputStream asnOs) throws MAPException {
  
          if (this.requestorIDString == null)
              throw new MAPException("nameString must not be null");
  
          try {
              asnOs.writeOctetString(Tag.CLASS_CONTEXT_SPECIFIC, _TAG_DATA_CODING_SCHEME,
                      new byte[] { (byte) this.dataCodingScheme.getCode() });
  
              ((USSDStringImpl) this.requestorIDString).encodeAll(asnOs, Tag.CLASS_CONTEXT_SPECIFIC, _TAG_NAME_STRING);
  
              if (this.lcsFormatIndicator != null) {
                  asnOs.writeInteger(Tag.CLASS_CONTEXT_SPECIFIC, _TAG_LCS_FORMAT_INDICATOR,
                          this.lcsFormatIndicator.getIndicator());
              }
          } catch (IOException e) {
              throw new MAPException("IOException when encoding " + _PrimitiveName + "", e);
          } catch (AsnException e) {
              throw new MAPException("AsnException when encoding " + _PrimitiveName + "", e);
          }
      }
docs: /*
  (non-Javadoc)
  
  @see org.restcomm.protocols.ss7.map.api.primitives.MAPAsnPrimitive#encodeData
  (org.mobicents.protocols.asn.AsnOutputStream)