private boolean convertBoolean ( Object o ) { if ( o instanceof Boolean ) return ( Boolean ) o ; return "true" . equalsIgnoreCase ( o . toString ( ) . trim ( ) ) ; }
Convert a String to a boolean value . If the string does not match true then it defaults to false .