code: public int populateContentTypeCache(int limit) {
      if (limit > CONTENT_TYPE_LIMIT_MAX) {
        throw new IllegalArgumentException("Content types per page limit cannot be more then 1000.");
      }
      if (limit <= 0) {
        throw new IllegalArgumentException("Content types per page limit cannot be "
            + "less or equal to 0.");
      }
  
      return observeContentTypeCachePopulation(limit).blockingFirst();
    }
docs: Populate the content type cache with _all_ available content types.
  <p>
  This method is synchronous.
  
  @param limit the number of content types per page.
  @return the number of content types cached.
  @throws IllegalArgumentException if limit is less or equal to 0.
  @throws IllegalArgumentException if limit is more then 1_000.
  @see #populateContentTypeCache()