}
public static Map<String,PortInfo> parseWebServiceDescriptor(URL wsDDUrl, JarFile moduleFile, boolean isEJB, Map servletLocations) throws DeploymentException {
XmlObject webservicesType = getWebservicesType(wsDDUrl);
if (webservicesType instanceof WebservicesType) {
WebservicesType webServices = (WebservicesType)webservicesType;
return parseWebServiceDescriptor(webServices, moduleFile, isEJB, servletLocations);
} else if (webservicesType instanceof org.apache.geronimo.xbeans.javaee.WebservicesType) {
org.apache.geronimo.xbeans.javaee.WebservicesType webServices = (org.apache.geronimo.xbeans.javaee.WebservicesType)webservicesType;
return parseWebServiceDescriptor(webServices, moduleFile, isEJB, servletLocations);
} else {