docs: @Override
      public <E> E getJson(PortletPreferences prefs, String key, Class<E> type) throws IOException {
          final String prefValue = StringUtils.trimToNull(prefs.getValue(key, null));
          if (prefValue == null) {
              return null;
          }
          return mapper.readValue(prefValue, type);
      }