servletClass = cl.loadClass(servletClassName);
//Check if the servlet is of type Servlet class
if (!baseServletClass.isAssignableFrom(servletClass)) {
//Nope - its probably a webservice, so lets see...
if (webServiceMap != null) {
StoredObject storedObject = (StoredObject) webServiceMap.get(wrapper.getName());
if (storedObject != null) {
WebServiceContainer webServiceContainer = null;
try {
webServiceContainer = (WebServiceContainer) storedObject.getObject(cl);
} catch (IOException io) {
throw new RuntimeException(io);
}
//Yep its a web service
//So swap it out with a POJOWebServiceServlet