public int getRequestSize() {
        if (records == null) {
            return 1;
        }

        int size = 1;
        for (RecordRequest record : records) {
            size += record.getRequestSize();
        }

        return size;
    }
public int getRequestSize ( ) { if ( records == null ) { return 1 ; } int size = 1 ; for ( RecordRequest record : records ) { size += record . getRequestSize ( ) ; } return size ; }
getRequestSize -- return the total request size.  This is useful
for determining if a new record can be added.

@return size in bytes of response.