public static boolean getPropertyBoolean( final Object root,
                                              final String... properties ) {


        final String lastProperty = properties[ properties.length - 1 ];


        if ( isDigits( lastProperty ) ) {

            return Conversions.toBoolean(getPropertyValue(root, properties));

        }


        Object object = baseForGetProperty( root, properties );

        Map<String, FieldAccess> fields = getFieldsFromObject( object );

        FieldAccess field = fields.get( lastProperty );

        if ( field.type() == Typ.bln ) {
            return field.getBoolean( object );
        } else {
            return Conversions.toBoolean( field.getValue( object ) );
        }
    }
public static boolean getPropertyBoolean ( final Object root , final String ... properties ) { final String lastProperty = properties [ properties . length - 1 ] ; if ( isDigits ( lastProperty ) ) { return Conversions . toBoolean ( getPropertyValue ( root , properties ) ) ; } Object object = baseForGetProperty ( root , properties ) ; Map < String , FieldAccess > fields = getFieldsFromObject ( object ) ; FieldAccess field = fields . get ( lastProperty ) ; if ( field . type ( ) == Typ . bln ) { return field . getBoolean ( object ) ; } else { return Conversions . toBoolean ( field . getValue ( object ) ) ; } }
@param root
@param properties
@return