agave-tags/tags-api/src/main/java/org/iplantc/service/tags/utils/BindingUtils.java
/**
     * Returns the Boolean parsed from the variable's value. Throws an
     * {@link IllegalArgumentException} if no Boolean can be parsed from the
     * variable's value.
     * 
     * @param value
     *            The variable's value.
     */
Returns the Boolean parsed from the variable's value. Throws an
IllegalArgumentException if no Boolean can be parsed from the
variable's value.

@param value
The variable's value.
Returns the Boolean parsed from the variable ' s value . Throws an IllegalArgumentException if no Boolean can be parsed from the variable ' s value . @param value The variable ' s value .
public static Boolean toBoolean(String value) {
        if (StringUtils.isNullOrEmpty(value)) {
            return null;
        }
        if (value.equalsIgnoreCase("true")) {
            return true;
        } else if (value.equalsIgnoreCase("false")) {
            return false;
        } else {
            throw new IllegalArgumentException("Invalid boolean value ["
                    + value + "]");
        }
    }
public static Boolean toBoolean ( String value ) { if ( StringUtils . isNullOrEmpty ( value ) ) { return null ; } if ( value . equalsIgnoreCase ( "true" ) ) { return true ; } else if ( value . equalsIgnoreCase ( "false" ) ) { return false ; } else { throw new IllegalArgumentException ( "Invalid boolean value [" + value + "]" ) ; } }
Returns the Boolean parsed from the variable's value.
Returns the Boolean parsed from the variable ' s value .