if (stateObject.isDecorated()) {
toText(stateObject);
}
else {
HavingClause expression = stateObject.getExpression();
// 'HAVING'
appendIdentifier((expression != null) ? expression.getActualIdentifier() : HAVING, HAVING);
if (exactMatch && (expression != null) && expression.hasSpaceAfterIdentifier() ||
stateObject.hasConditional()) {
writer.append(SPACE);
}