protected void typeMismatch(Class<?> type, Expression<?> expr) {
        final String msg = expr.getType().getName() + " is not compatible with " + type.getName();
        throw new IllegalArgumentException(msg);
    }
Create a new QBean instance

@param type type of bean
@param fieldAccess true, for field access and false, for property access
@param bindings bindings
querydsl-core/src/main/java/com/querydsl/core/types/QBean.java