* </p>
*
* @throws LifecycleException
*/
protected void initHandlersChain() throws LifecycleException {
Handlers handlers = null;
try {
if (picketLinkConfiguration != null) {
handlers = picketLinkConfiguration.getHandlers();
} else {
// Get the handlers
String handlerConfigFileName = GeneralConstants.HANDLER_CONFIG_FILE_LOCATION;
handlers = ConfigurationUtil.getHandlers(getContext().getServletContext().getResourceAsStream(
handlerConfigFileName));
}
// Get the chain from config
String handlerChainClass = handlers.getHandlerChainClass();
if (StringUtil.isNullOrEmpty(handlerChainClass))
chain = SAML2HandlerChainFactory.createChain();
else {
try {