code: private String getSettingValue(String key) {
      SettingKey settingKey = settingKeyDAO.findByName(key);
      if (settingKey == null) {
        return null;
      }
      
      Setting setting = settingDAO.findByKey(settingKey);
      return setting != null ? setting.getValue() : null;
    }
docs: Returns a setting value for given key
  
  @param key key
  @return setting value