if (!entry.getKey().isEncrypted()) {
Deque<XMLSecEvent> xmlSecEvents = entry.getValue();
while (!xmlSecEvents.isEmpty()) {
XMLSecEvent event = xmlSecEvents.pop();
subOutputProcessorChain.reset();
subOutputProcessorChain.processEvent(event);
}
//remove the actual header so that it won't be output twice in the loop below
entryIterator.remove();
}
//... the action is encryption and...