try {
in = new FileInputStream(moduleInfo);
} catch(FileNotFoundException fne) {
throw new RepositoryException (fne);
}
SunWebApp sunWebApp = null;
try {
sunWebApp = SunWebApp.createGraph(in);
} catch (Schema2BeansException sce) {
throw new RepositoryException (sce);
}
// bundle name is null for stand alone module
boolean isAppStandAloneModule = (bundleName==null) ? true : false;
// all available servlets
Servlet[] sLets = sunWebApp.getServlet();
Map wsMap = new HashMap();
for (int sCnt =0; sCnt < sLets.length; sCnt++) {
Servlet sLet = sLets[sCnt];
// all end points for this servlet
WebserviceEndpoint[] webSvcEps = sLet.getWebserviceEndpoint();
for ( int wsCnt = 0; wsCnt < webSvcEps.length; wsCnt++) {
WebserviceEndpoint webSvc = webSvcEps[wsCnt];
// context root for web service endpoint
String ctxRoot = sunWebApp.getContextRoot();
String uriInConfig = getUriInDomainConfig(appId);
if (uriInConfig != null) {
ctxRoot = uriInConfig;
}
String uri;