// Remove all the headers mentioned in -removeheaders
Map<String, Map<String, String>> removes = parseHeader(getProperty(REMOVE_HEADERS));
for (Iterator<String> i = removes.keySet().iterator(); i.hasNext();) {
String header = i.next();
for (Iterator<Object> j = main.keySet().iterator(); j.hasNext();) {
Attributes.Name attr = (Attributes.Name) j.next();
if (attr.toString().matches(header)) {
j.remove();
progress("Removing header: " + header);
}