code: public void decode(AsnInputStream ais) throws ParseException {
  
          this.correlationId = null;
          this.rejectProblem = null;
          this.localOriginated = false;
  
          try {
              AsnInputStream localAis = ais.readSequenceStream();
  
              // correlationId
              byte[] buf = TcapFactory.readComponentId(localAis, 0, 1);
              if (buf.length > 0)
                  this.setCorrelationId((long) buf[0]);
  
              // rejectProblem
              int tag = localAis.readTag();
              if (tag != Reject._TAG_REJECT_PROBLEM || localAis.getTagClass() != Tag.CLASS_PRIVATE
                      || !localAis.isTagPrimitive()) {
                  throw new ParseException(RejectProblem.generalIncorrectComponentPortion,
                          "RejectProblem in Reject has bad tag or tag class or is not primitive: tag=" + tag + ", tagClass=" + localAis.getTagClass());
              }
              long i1 = localAis.readInteger();
              this.rejectProblem = RejectProblem.getFromInt(i1);
  
              // Empty parameter
              // we do not parse an empty parameter because it is useless
  
          } catch (IOException e) {
              throw new ParseException(RejectProblem.generalBadlyStructuredCompPortion, "IOException while decoding Reject: " + e.getMessage(), e);
          } catch (AsnException e) {
              throw new ParseException(RejectProblem.generalBadlyStructuredCompPortion, "AsnException while decoding Reject: " + e.getMessage(), e);
          }
      }
docs: /*
  (non-Javadoc)
  
  @see org.restcomm.protocols.ss7.tcap.asn.Encodable#decode(org.mobicents.protocols .asn.AsnInputStream)