code: public Map.Entry<String, GDATDecoder> getNext() {
      Map.Entry<String, GDATDecoder> element = dataQueue.poll();
      pendingRecords.add(element);
      return element;
    }
docs: This function returns the next entry in the data queue and adds it to a queue of pending items. This pendingRecords
  serves as a place holder for all the items of the current transaction.
  @return The next entry in the data queue.