public static boolean toBooleanWithDefault ( Object value , boolean defaultValue ) { Boolean result = toNullableBoolean ( value ) ; return result != null ? ( boolean ) result : defaultValue ; }
Converts value into boolean or returns default value when conversion is not possible