__context.set(_context);
__context.set(_scontext);
    protected void doStart() throws Exception    {        _logger=Log.getLogger(getDisplayName()==null?getContextPath():getDisplayName());        ClassLoader old_classloader=null;        Thread current_thread=null;        Object old_context=null;        _contextAttributes=new AttributesMap();        try        {            // Set the classloader            if (_classLoader!=null)            {                current_thread=Thread.currentThread();                old_classloader=current_thread.getContextClassLoader();                current_thread.setContextClassLoader(_classLoader);            }                        if (_mimeTypes==null)                _mimeTypes=new MimeTypes();                        old_context=__context.get();            __context.set(_context);                        if (_errorHandler==null)                setErrorHandler(new ErrorHandler());                        startContext();                    }        finally        {            __context.set(old_context);                        // reset the classloader            if (_classLoader!=null)            {                current_thread.setContextClassLoader(old_classloader);            }        }    }