code: public List<Entry> getEntries(int start, int count) {
          List<Entry> result = Lists.newArrayList();
          int index = start;
          int itemsToReturn = count;
          synchronized (entries) {
              Iterator<Entry> iter = entries.iterator();
              while (iter.hasNext() && index > 0) {
                  iter.next();
                  index--;
              }
              while (iter.hasNext() && itemsToReturn > 0) {
                  result.add(iter.next());
                  itemsToReturn--;
              }
          }
  
          return result;
      }
docs: Returns a sublist of the stored entries, starting at <tt>start</tt> returning at most <tt>count</tt> items.
  
  @param start index of the item where to start
  @param count max number of items returned
  @return a non null list of log entries