code: public void encode(AsnOutputStream aos) throws EncodeException {
  
          if (abortSource == null)
              throw new EncodeException("Error encoding DialogAbortAPDU: Abort Source Name must not be null");
  
          try {
  
              aos.writeTag(Tag.CLASS_APPLICATION, false, _TAG_ABORT);
              int pos = aos.StartContentDefiniteLength();
  
              this.abortSource.encode(aos);
  
              if (this.userInformation != null)
                  this.userInformation.encode(aos);
  
              aos.FinalizeContent(pos);
  
          } catch (AsnException e) {
              throw new EncodeException("AsnException while encoding DialogAbortAPDU: " + e.getMessage(), e);
          }
      }
docs: /*
  (non-Javadoc)
  
  @see org.restcomm.protocols.ss7.tcap.asn.Encodable#encode(org.mobicents.protocols.asn.AsnOutputStream)