wsejbEndpointRegistry = Globals.getDefaultHabitat().getService(
WSEjbEndpointRegistry.class);
if (wsejbEndpointRegistry != null ) {
wsejbEndpointRegistry.registerEndpoint(webServiceEndpoint,endpointFacade,servant,tieClass);
} else {
throw new DeploymentException(localStrings.getLocalString(
"ejb.no_webservices_module",
"EJB-based Webservice endpoint is detected but there is no webservices module installed to handle it"));
}
}