/** {@inheritDoc} */
  public List<String> getItemsPerPageOptionsConfig(final long contentId, final long shopId) {

    if (contentId > 0L && shopService.getShopContentIds(shopId).contains(contentId)) {

      final String size =
          contentService.getContentAttributeRecursive(
              null, contentId, AttributeNamesKeys.Category.CATEGORY_ITEMS_PER_PAGE, null);
      if (StringUtils.isNotBlank(size)) {
        return Arrays.asList(StringUtils.split(size, ','));
      }
    }

    return Constants.DEFAULT_ITEMS_ON_PAGE;
  }
  private Pair<String, String> getImageSizeConfig(
      final long categoryId,
      final long shopId,
      final String[] widthAndHeightAttribute,
      final Pair<String, String> defaultWidthAndHeight) {

    if (categoryId > 0L && shopService.getShopContentIds(shopId).contains(categoryId)) {

      final String[] size =
          contentService.getContentAttributeRecursive(null, categoryId, widthAndHeightAttribute);
      if (size != null && size.length == 2) {
        return new Pair<String, String>(size[0], size[1]);
      }
    }

    return defaultWidthAndHeight;
  }
  private int getLimitSizeConfig(
      final long categoryId,
      final long shopId,
      final String limitAttribute,
      final int defaultLimit) {

    if (categoryId > 0L && shopService.getShopContentIds(shopId).contains(categoryId)) {

      final String size =
          contentService.getContentAttributeRecursive(null, categoryId, limitAttribute, null);
      if (size != null) {
        return NumberUtils.toInt(size, defaultLimit);
      }
    }

    return defaultLimit;
  }