Class<? extends Handler> handlerClass = Class.forName(
trimString(ht.getHandlerClass()
.getStringValue()), true, classLoader)
.asSubclass(Handler.class);
Handler handler = handlerClass.newInstance();
log.debug("adding handler to chain: " + handler);
handlerChain.add(handler);
} catch (Exception e) {
throw new WebServiceException("Failed to instantiate handler", e);
}