code: public void decode(AsnInputStream ais) throws ParseException {
  
          this.correlationId = null;
          this.parameter = null;
  
          try {
              AsnInputStream localAis = ais.readSequenceStream();
  
              // correlationId
              byte[] buf = TcapFactory.readComponentId(localAis, 1, 1);
              this.setCorrelationId((long) buf[0]);
  
              // Parameter
              this.parameter = TcapFactory.readParameter(localAis);
  
          } catch (IOException e) {
              throw new ParseException(RejectProblem.generalBadlyStructuredCompPortion, "IOException while decoding ReturnResult: " + e.getMessage(), e);
          } catch (AsnException e) {
              throw new ParseException(RejectProblem.generalBadlyStructuredCompPortion, "AsnException while decoding ReturnResult: " + e.getMessage(), e);
          } catch (ParseException e) {
              e.setInvokeId(this.correlationId);
              throw e;
          }
      }
docs: /*
  (non-Javadoc)
  
  @see org.restcomm.protocols.ss7.tcap.asn.Encodable#decode(org.mobicents.protocols .asn.AsnInputStream)