String providerClass = service.getParameter("handlerClass");
if (providerClass == null) {
throw new ConfigurationException(Messages.getMessage("noHandlerClass00"));
}
Class _class = ClassUtils.forName(providerClass);
if (!(Handler.class.isAssignableFrom(_class))) {
throw new ConfigurationException(Messages.getMessage("badHandlerClass00",
_class.getName()));
}
return (Handler)_class.newInstance();