@Override
public void init(ServletConfig config) throws ServletException{
try {
super.init(config);
ClassLoader loader = new CachedClassLoader(Thread.currentThread().getContextClassLoader(), null);
Thread.currentThread().setContextClassLoader(loader);
ServletContext context = this.getServletContext();
String delegatorName = context.getInitParameter("entityDelegatorName");
this.delegator = DelegatorFactory.getDelegator(delegatorName);
String dispatcherName = context.getInitParameter("localDispatcherName");
this.dispatcher = GenericDispatcher.getLocalDispatcher(dispatcherName, this.delegator);
this.security = SecurityFactory.getInstance(this.delegator);
this.authz = AuthorizationFactory.getInstance(this.delegator);
String factoryClassName = context.getInitParameter("requestHandlerFactoryClass");
this.handlerFactory = (RequestHandlerFactory) loader.loadClass(factoryClassName).newInstance();
} catch (Exception e) {
Debug.logError(e, "Error while initializing WebDAV servlet: ", module);
throw new ServletException(e);
}
if (Debug.verboseOn()) {