}
}
private Predicate addPrefix(String prefix, Predicate predicate) {
if (predicate instanceof CompoundPredicate) {
CompoundPredicate compound = (CompoundPredicate) predicate;
List<Predicate> children = new ArrayList<Predicate>();
for (Predicate child : compound.getChildren()) {
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(),