class OSGIServiceLoader implements BundleListener {

    public Set<Bundle> getResourceBundles() {
        synchronized (resourceBundles) {
            return new HashSet<>(resourceBundles);
        }
    }

    public  OSGIServiceLoader(BundleContext context);

}