@Override
    public void preRender(final SQLListenerContext context) {
        if (detailedListener != null) {
            detailedListener.preRender(context);
        }
    }
A simple adapter class that knows if the underlying listener is a simple or detailed SQL listener
querydsl-sql/src/main/java/com/querydsl/sql/SQLListenerAdapter.java