} else if (POST_HANDLER_CHAIN.equals(handlerChainType)) {
handlerChains = commonConfig.getPostHandlerChains();
} else {
throw MESSAGES.wrongHandlerChainType(handlerChainType, PRE_HANDLER_CHAIN, POST_HANDLER_CHAIN);
}
final UnifiedHandlerChainMetaData handlerChain = getChain(handlerChains, handlerChainId);
if (handlerChain == null) {
throw MESSAGES.missingHandlerChain(configName, handlerChainType, handlerChainId);
}
final UnifiedHandlerMetaData handler = getHandler(handlerChain, handlerName);
if (handler == null) {
throw MESSAGES.missingHandler(configName, handlerChainType, handlerChainId, handlerName);
}
handlerChain.getHandlers().remove(handler);
context.reloadRequired();
return;
}
}
throw MESSAGES.missingConfig(configName);