protected Boolean getBoolean ( Exchange exchange , Message message , String name ) { Object value = getObject ( exchange , message , name ) ; if ( value instanceof Boolean ) { return ( Boolean ) value ; } else if ( value instanceof String ) { return Boolean . valueOf ( ( ( String ) value ) . trim ( ) ) ; } return false ; }
Gets a Boolean context property .