TObjectIntIterator iterator = map.iterator();
while(iterator.hasNext()) {
iterator.advance();
String predName = (String)iterator.key();
int index = map.get(predName);
Context context = params[index];
boolean goodPredName = true;
if(featuresToRemove != null && featuresToRemove.contains(predName)) goodPredName = false;
for(String prefix : prefixesToRemove) {
if(predName.startsWith(prefix)) goodPredName = false;
}