code: public void encode(AsnOutputStream aos) throws EncodeException {
  
          if (resultType == null)
              throw new EncodeException("Error encoding Result: ResultType must not be null");
  
          try {
              aos.writeTag(Tag.CLASS_CONTEXT_SPECIFIC, false, _TAG);
              int pos = aos.StartContentDefiniteLength();
              aos.writeInteger(this.resultType.getType());
              aos.FinalizeContent(pos);
  
          } catch (IOException e) {
              throw new EncodeException("IOException while encoding Result: " + e.getMessage(), e);
          } catch (AsnException e) {
              throw new EncodeException("AsnException while encoding Result: " + e.getMessage(), e);
          }
      }
docs: /*
  (non-Javadoc)
  
  @see org.restcomm.protocols.ss7.tcap.asn.Encodable#encode(org.mobicents.protocols .asn.AsnOutputStream)