actually that's a workaround to make sure OSGi works :-) _DefaultCacheManagerService.class.getClassLoader()_ is for sure the correct (and only) classloader that it should use.
But I think the InfinispanConfigurationParser then internally uses another classloader, which might need to use the new Service to look for the user provided resources.