code: public void encodeData(AsnOutputStream asnOs) throws MAPException {
          if (this.extensionContainer != null) {
              // extensionContainer ExtensionContainer OPTIONAL
              ((MAPExtensionContainerImpl) this.extensionContainer).encodeAll(asnOs);
          }
  
          if (this.naEsrk != null) {
              // na-ESRK [0] ISDN-AddressString OPTIONAL
              ((ISDNAddressStringImpl) this.naEsrk).encodeAll(asnOs, Tag.CLASS_CONTEXT_SPECIFIC, _TAG_NA_ESRK);
          }
  
          if (this.naEsrd != null) {
              // na-ESRD [1] ISDN-AddressString OPTIONAL ,
              ((ISDNAddressStringImpl) this.naEsrd).encodeAll(asnOs, Tag.CLASS_CONTEXT_SPECIFIC, _TAG_NA_ESRD);
          }
      }
docs: /*
  (non-Javadoc)
  
  @see org.restcomm.protocols.ss7.map.api.primitives.MAPAsnPrimitive#encodeData
  (org.mobicents.protocols.asn.AsnOutputStream)