code: public void encode(AsnOutputStream aos) throws EncodeException {
  
          try {
              aos.writeTag(Tag.CLASS_APPLICATION, false, _TAG);
              int pos = aos.StartContentDefiniteLength();
  
              aos.writeOctetString(Tag.CLASS_APPLICATION, _TAG_DTX, this.destTxId);
  
              if (this.type != null)
                  aos.writeInteger(Tag.CLASS_APPLICATION, _TAG_P, this.type.getType());
              else if (this.dp != null)
                  this.dp.encode(aos);
  
              aos.FinalizeContent(pos);
  
          } catch (IOException e) {
              throw new EncodeException("IOException while encoding TC-Abort: " + e.getMessage(), e);
          } catch (AsnException e) {
              throw new EncodeException("AsnException while encoding TC-Abort: " + e.getMessage(), e);
          }
  
      }
docs: /*
  (non-Javadoc)
  
  @see org.restcomm.protocols.ss7.tcap.asn.Encodable#encode(org.mobicents.protocols .asn.AsnOutputStream)