code: public void addResponse(RecordResponse response) {
          if (response.getResponseSize() + getResponseSize() > 248) {
              throw new IllegalArgumentException();
          }
  
          if (records == null) {
              records = new RecordResponse[1];
          }
          else {
              RecordResponse old[] = records;
              records = new RecordResponse[old.length + 1];
  
              System.arraycopy(old, 0, records, 0, old.length);
          }
          records[records.length - 1] = response;
  
          setDataLength(getResponseSize());
      }
docs: addResponse -- add a new record response.
  @param response Add record response