code: public static <T> CloseableIterator<T> limit(final CloseableIterator<T> iterator, final int limitSize) {
          return wrap(Iterators.limit(iterator, limitSize), iterator);
      }
docs: Creates a closeable iterator returning the first {@code limitSize} elements of the
  given closeable iterator. If the original closeable iterator does not contain that many
  elements, the returned closeable iterator will have the same behavior as the original.