public void serialize(QueryMetadata metadata, boolean forCountRow, SQLSerializer context) {
        context.serializeForQuery(metadata, forCountRow);

        if (!metadata.getFlags().isEmpty()) {
            context.serialize(Position.END, metadata.getFlags());
        }
    }
template method for SELECT serialization

@param metadata
@param forCountRow
@param context
querydsl-sql/src/main/java/com/querydsl/sql/SQLTemplates.java