code: public void encodeData(AsnOutputStream asnOs) throws MAPException {
          if (this.externalAddress != null) {
              ((ISDNAddressStringImpl) this.externalAddress).encodeAll(asnOs, Tag.CLASS_CONTEXT_SPECIFIC, _TAG_EXTERNAL_ADDRESS);
          }
  
          if (this.extensionContainer != null) {
              ((MAPExtensionContainerImpl) this.extensionContainer).encodeAll(asnOs, Tag.CLASS_CONTEXT_SPECIFIC,
                      _TAG_EXTENSION_CONTAINER);
          }
      }
docs: /*
  (non-Javadoc)
  
  @see
  org.restcomm.protocols.ss7.map.api.primitives.MAPAsnPrimitive#encodeData(org.mobicents.protocols.asn.AsnOutputStream)