public String getOrElse(String name, String def)
    {
        String val = get(name);
        if (val == null)
        {
            return def;
        }
        return val;
    }
public String getOrElse ( String name , String def ) { String val = get ( name ) ; if ( val == null ) { return def ; } return val ; }
Returns the parameter value for the given name or the given default if not found.

@param name the name of the parameter
@param def the default value

@return the value of the argument by name or the default value.