@Override
public void handle(final InputProcessorChain inputProcessorChain, final XMLSecurityProperties securityProperties,
final Deque<XMLSecEvent> eventQueue, final Integer index) throws XMLSecurityException {
final ReferenceList referenceList = (ReferenceList) parseStructure(eventQueue, index, securityProperties);
//instantiate a new DecryptInputProcessor and add it to the chain
inputProcessorChain.addProcessor(
new DecryptInputProcessor(null, referenceList, (WSSSecurityProperties) securityProperties,
(WSInboundSecurityContext) inputProcessorChain.getSecurityContext()));