if (clazz == null) {
logger.warn("No matching handler found for " + elementName);
return;
}
try {
XMLSecurityHeaderHandler xmlSecurityHeaderHandler = clazz.newInstance();
xmlSecurityHeaderHandler.handle(inputProcessorChain, securityProperties, eventQueue, index);
} catch (InstantiationException e) {
throw new WSSecurityException(WSSecurityException.ErrorCode.INVALID_SECURITY, e);
} catch (IllegalAccessException e) {
throw new WSSecurityException(WSSecurityException.ErrorCode.INVALID_SECURITY, e);
} catch (WSSecurityException e) {