//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
wrapper.setServletClass("org.apache.geronimo.webservices.POJOWebServiceServlet");
//Set the WebServiceContainer stuff
String webServicecontainerID = wrapper.getName() + WebServiceContainerInvoker.WEBSERVICE_CONTAINER + webServiceContainer.hashCode();
getServletContext().setAttribute(webServicecontainerID, webServiceContainer);
wrapper.addInitParameter(WebServiceContainerInvoker.WEBSERVICE_CONTAINER, webServicecontainerID);
//Set the SEI Class in the attribute
String pojoClassID = wrapper.getName() + POJOWebServiceServlet.POJO_CLASS + servletClass.hashCode();