private static void loadExtensionOSGI(BundleContext bundleContext,
                                          Map<String, Class> siddhiExtensionsMap,
                                          ConcurrentHashMap<Class, AbstractExtensionHolder> extensionHolderMap,
                                          Map<String, Class> deprecatedSiddhiExtensionsMap) {
        ExtensionBundleListener extensionBundleListener
                = new ExtensionBundleListener(siddhiExtensionsMap, extensionHolderMap, deprecatedSiddhiExtensionsMap);
        bundleContext.addBundleListener(extensionBundleListener);
        extensionBundleListener.loadAllExtensions(bundleContext);
    }
Load Extensions in OSGi environment.

@param bundleContext                 OSGi bundleContext
@param siddhiExtensionsMap           reference map for the Siddhi extension
@param extensionHolderMap            reference map for the Siddhi extension holder
@param deprecatedSiddhiExtensionsMap reference map for the deprecated Siddhi extensions
modules/siddhi-core/src/main/java/io/siddhi/core/util/SiddhiExtensionLoader.java