@SuppressWarnings("deprecation")
class TxUtils {
public static final Filter transformFilter(Filter f, int readVersion) {
if (f instanceof KeyAssociatedFilter) {
KeyAssociatedFilter kaf = (KeyAssociatedFilter)f;
Filter nested = kaf.getFilter();
Object hostKey = kaf.getHostKey();
return new KeyAssociatedFilter(transformFilter(nested, readVersion), hostKey);
}
else if (f instanceof IndexAwareFilter){
return new TxIndexAwareFilterWrapper((IndexAwareFilter) f, readVersion);
}
else {