Thread.currentThread().setContextClassLoader(prev);
if ((soapProviderReference = context
.getServiceReference("org.apache.muse.osgi.soa.core.SOAPProvider")) != null) {
SOAPProvider soapProvider = (SOAPProvider)context.getService(soapProviderReference);
ResourceManagementAdminServiceImpl adminImpl = new ResourceManagementAdminServiceImpl(context, soapProvider);
Axis2Environment.setBundleContext(context);
adminService = adminImpl;
context.registerService(
"org.apache.muse.core.platform.osgi.ResourceManagementProvider",
adminService, new Hashtable());