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 ; }
Returns a setting value for given key