public static String getStringSetting ( Map < String , Object > settings , String key , String defaultVal ) { final Object value = settings . get ( key ) ; return value != null ? value . toString ( ) : defaultVal ; }
Gets a String value for the setting returning the default value if not specified .