code: public void encodeData(AsnOutputStream asnOs) throws MAPException {
          if (this.horizontalAccuracy != null) {
              try {
                  asnOs.writeOctetString(Tag.CLASS_CONTEXT_SPECIFIC, _TAG_HORIZONTAL_ACCURACY,
                          new byte[] { this.horizontalAccuracy.byteValue() });
              } catch (IOException e) {
                  throw new MAPException("IOException when encoding parameter horizontalAccuracy: ", e);
              } catch (AsnException e) {
                  throw new MAPException("AsnException when encoding parameter horizontalAccuracy: ", e);
              }
          }
  
          if (this.verticalCoordinateRequest) {
              try {
                  asnOs.writeNull(Tag.CLASS_CONTEXT_SPECIFIC, _TAG_VERTICAL_COORDINATE_REQUEST);
              } catch (IOException e) {
                  throw new MAPException("IOException when encoding parameter verticalCoordinateRequest: ", e);
              } catch (AsnException e) {
                  throw new MAPException("IOException when encoding parameter verticalCoordinateRequest: ", e);
              }
          }
  
          if (this.verticalAccuracy != null) {
              try {
                  asnOs.writeOctetString(Tag.CLASS_CONTEXT_SPECIFIC, _TAG_VERTICAL_ACCURACY,
                          new byte[] { this.verticalAccuracy.byteValue() });
              } catch (IOException e) {
                  throw new MAPException("IOException when encoding parameter verticalAccuracy: ", e);
              } catch (AsnException e) {
                  throw new MAPException("AsnException when encoding parameter verticalAccuracy: ", e);
              }
          }
  
          if (this.responseTime != null) {
              ((ResponseTimeImpl) this.responseTime).encodeAll(asnOs, Tag.CLASS_CONTEXT_SPECIFIC, _TAG_RESPONSE_TIME);
          }
  
          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)