private String conditionsToString() { if (conditions.size() == 1) { return convertCondition(conditions.get(0)); } else { StringBuilder builder = new StringBuilder(); String sep = ""; for (String condition : conditions) { builder.append(sep + "(" + convertCondition(condition) + ")"); sep = " and "; } return builder.toString(); } }