throw new ServletException
(sm.getString("standardWrapper.notClass", getName()));
}
if (servletInstance == null) {
InstanceManager instanceManager = ((Context) getParent()).getInstanceManager();
try {
servlet = (Servlet) instanceManager.newInstance(actualClass);
} catch (ClassCastException e) {
unavailable(null);
// Restore the context ClassLoader
throw new ServletException
(sm.getString("standardWrapper.notServlet", actualClass), e);