code: public List<CmsFavoriteEntry> loadFavorites() throws CmsException {
  
          List<CmsFavoriteEntry> result = new ArrayList<>();
          try {
              CmsUser user = readUser();
              String data = (String)user.getAdditionalInfo(ADDINFO_KEY);
              if (CmsStringUtil.isEmptyOrWhitespaceOnly(data)) {
                  return new ArrayList<>();
              }
              JSONObject json = new JSONObject(data);
              JSONArray array = json.getJSONArray(BASE_KEY);
              for (int i = 0; i < array.length(); i++) {
                  JSONObject fav = array.getJSONObject(i);
                  try {
                      CmsFavoriteEntry entry = new CmsFavoriteEntry(fav);
                      if (validate(entry)) {
                          result.add(entry);
                      }
                  } catch (Exception e) {
                      LOG.warn(e.getLocalizedMessage(), e);
                  }
  
              }
          } catch (JSONException e) {
              LOG.error(e.getLocalizedMessage(), e);
          }
          return result;
      }
docs: Loads the favorite list.
  
  @return the list of favorites
  
  @throws CmsException if something goes wrong