if (servletClass == null)
throw new ServletException
(sm.getString("standardWrapper.noServlet"));
// Acquire an instance of the class loader to be used
Loader loader = ((Context) getParent()).getLoader();
if (loader == null)
throw new ServletException
(sm.getString("standardWrapper.noLoader"));
ClassLoader classLoader = loader.getClassLoader();
// Load and initialize an instance of the specified servlet class
try {
Class classClass = classLoader.loadClass(servletClass);
Servlet servlet = (Servlet) classClass.newInstance();