*/
private static String getCustomCriteriaSetString(CustomCriteriaNode root, int level) {
StringBuilder sb = new StringBuilder();
sb.append(StringUtils.repeat("\t", level));
if (root instanceof CustomCriteria) {
CustomCriteria customCriteria = (CustomCriteria) root;
sb.append(String.format("Custom criteria: operator: [%s] key: [%s] values: [%s]\n",
customCriteria.getOperator(), customCriteria.getKeyId(),
StringUtils.join(ArrayUtils.toObject(customCriteria.getValueIds()), ",")));
return sb.toString();
} else if (root instanceof CustomCriteriaSet){
CustomCriteriaSet customCriteriaSet = (CustomCriteriaSet) root;
sb.append(String.format("Custom criteria set: operator: [%s] children: \n",
customCriteriaSet.getLogicalOperator()));