if (handlersFactoryClassName != null) {
try {
logger.debug("Handlers Factory Class is: {}", handlersFactoryClassName);
Class<HandlersFactory> handlerFactoryClass =
(Class<HandlersFactory>)Class.forName(handlersFactoryClassName);
HandlersFactory handlersFactory = handlerFactoryClass.newInstance();
if (requestUserHandlers == null) {
requestUserHandlers =
(List<RequestHandler>)handlersFactory.getRequestHandlers();
}
if (responseUserHandlers == null) {
responseUserHandlers =
(List<ResponseHandler>)handlersFactory.getResponseHandlers();
}
if (errorUserHandlers == null) {
errorUserHandlers = (List<ResponseHandler>)handlersFactory.getErrorHandlers();
}
} catch (ClassNotFoundException e) {
logger.error(Messages.getMessage("isNotAClass", handlersFactoryClassName), e);
} catch (InstantiationException e) {
logger.error(Messages.getMessage("classInstantiationException",