code: public void encode(AsnOutputStream aos) throws EncodeException {
  
          if (type == null)
              throw new EncodeException("Error encoding AbortSource: No type set");
  
          try {
              aos.writeInteger(Tag.CLASS_CONTEXT_SPECIFIC, _TAG, type.getType());
  
          } catch (IOException e) {
              throw new EncodeException("IOException while encoding AbortSource: " + e.getMessage(), e);
          } catch (AsnException e) {
              throw new EncodeException("AsnException while encoding AbortSource: " + e.getMessage(), e);
          }
      }
docs: /*
  (non-Javadoc)
  
  @see org.restcomm.protocols.ss7.tcap.asn.Encodable#encode(org.mobicents.protocols.asn.AsnOutputStream)