code: private void submitRevisions(final RevisionList changes) {
          int remaining = changes.size();
          int size = batcher.getCapacity();
          int start = 0;
          while (remaining > 0) {
              if (size > remaining)
                  size = remaining;
              RevisionList subChanges = new RevisionList(changes.subList(start, start + size));
              batcher.queueObjects(subChanges);
              start += size;
              remaining -= size;
              pauseOrResume();
              waitIfPaused();
              // if not running state anymore, exit from loop.
              if (!isRunning())
                  break;
          }
      }
docs: Submit revisions into inbox for changes from changesSince()