code: public void encodeData(AsnOutputStream asnOs) throws MAPException {
  
          if (this.ssStatus == null)
              throw new MAPException("Error while encoding " + _PrimitiveName + ": ssStatus required.");
  
          try {
  
              if (this.basicService != null)
                  ((ExtBasicServiceCodeImpl) this.basicService).encodeAll(asnOs);
  
              ((ExtSSStatusImpl) this.ssStatus).encodeAll(asnOs, Tag.CLASS_CONTEXT_SPECIFIC, _TAG_ss_Status);
  
              if (this.forwardedToNumber != null)
                  ((ISDNAddressStringImpl) this.forwardedToNumber).encodeAll(asnOs, Tag.CLASS_CONTEXT_SPECIFIC,
                          _TAG_forwardedToNumber);
  
              if (this.forwardedToSubaddress != null)
                  ((ISDNSubaddressStringImpl) this.forwardedToSubaddress).encodeAll(asnOs, Tag.CLASS_CONTEXT_SPECIFIC,
                          _TAG_forwardedToSubaddress);
  
              if (this.forwardingOptions != null)
                  ((ExtForwOptionsImpl) this.forwardingOptions).encodeAll(asnOs, Tag.CLASS_CONTEXT_SPECIFIC,
                          _TAG_forwardingOptions);
  
              if (this.noReplyConditionTime != null)
                  asnOs.writeInteger(Tag.CLASS_CONTEXT_SPECIFIC, _TAG_noReplyConditionTime, this.noReplyConditionTime);
  
              if (this.extensionContainer != null)
                  ((MAPExtensionContainerImpl) this.extensionContainer).encodeAll(asnOs, Tag.CLASS_CONTEXT_SPECIFIC,
                          _TAG_extensionContainer);
  
              if (this.longForwardedToNumber != null)
                  ((FTNAddressStringImpl) this.longForwardedToNumber).encodeAll(asnOs, Tag.CLASS_CONTEXT_SPECIFIC,
                          _TAG_longForwardedToNumber);
          } catch (IOException e) {
              throw new MAPException("IOException when encoding " + _PrimitiveName + ": " + e.getMessage(), e);
          } catch (AsnException e) {
              throw new MAPException("AsnException when encoding " + _PrimitiveName + ": " + e.getMessage(), e);
          }
      }
docs: /*
  (non-Javadoc)
  
  @see org.restcomm.protocols.ss7.map.primitives.MAPAsnPrimitive#encodeData (org.mobicents.protocols.asn.AsnOutputStream)