sel.append(entryId);
sel.append(stepEntryId);
    private String buildNested(NestedExpression nestedExpression, StringBuffer sel, List values) {        sel.append("SELECT DISTINCT(");        sel.append(entryId);        sel.append(") FROM ");        sel.append(entryTable);        for (int i = 0; i < nestedExpression.getExpressionCount(); i++) {            Expression expression = nestedExpression.getExpression(i);            if (i == 0) {                sel.append(" WHERE ");            } else {                if (nestedExpression.getExpressionOperator() == NestedExpression.AND) {                    sel.append(" AND ");                } else {                    sel.append(" OR ");                }            }            if (expression.isNegate()) {                sel.append(" NOT ");            }            sel.append(entryId);            sel.append(" IN (");            if (expression.isNested()) {                this.buildNested((NestedExpression) nestedExpression.getExpression(i), sel, values);            } else {                FieldExpression sub = (FieldExpression) nestedExpression.getExpression(i);                this.buildSimple(sub, sel, values);            }            sel.append(")");        }        return (entryId);    }