public static String getStringOption ( Map < String , String > configOptions , String optionKey , String defaultValue ) { String result = configOptions . get ( optionKey ) ; return null != result ? result : defaultValue ; }
Returns the value of an option or the default if the value is null or the key is not part of the map .