children.add(addPrefix(prefix, child));
}
return new CompoundPredicate(compound.getOperator(), children);
} else if (predicate instanceof ComparisonPredicate) {
ComparisonPredicate comparison = (ComparisonPredicate) predicate;
return new ComparisonPredicate(
comparison.getOperator(),
comparison.isIgnoreCase(),
prefix + comparison.getKey(),
comparison.getValues());
} else {
return predicate;
}
}