docs: function parsePreferencesJson(value, key) {
          var answer = null;
          if (angular.isDefined(value)) {
              answer = Core.parseJsonText(value, "localStorage for " + key);
          }
          return answer;
      }