code: public void addRequest(RecordRequest request) {
          if (request.getRequestSize() + getRequestSize() > 248) {
              throw new IllegalArgumentException();
          }
  
          if (records == null) {
              records = new RecordRequest[1];
          }
          else {
              RecordRequest old[] = records;
              records = new RecordRequest[old.length + 1];
  
              System.arraycopy(old, 0, records, 0, old.length);
          }
          records[records.length - 1] = request;
  
          setDataLength(getRequestSize());
      }
docs: addRequest -- add a new record request.
  @param request Request record