public static void loadSiddhiExtensions(Map<String, Class> siddhiExtensionsMap,
                                            ConcurrentHashMap<Class, AbstractExtensionHolder> extensionHolderMap,
                                            Map<String, Class> deprecatedSiddhiExtensionsMap) {
        loadLocalExtensions(siddhiExtensionsMap, extensionHolderMap, deprecatedSiddhiExtensionsMap);
        BundleContext bundleContext = ReferenceHolder.getInstance().getBundleContext();
        if (bundleContext != null) {
            loadExtensionOSGI(bundleContext, siddhiExtensionsMap, extensionHolderMap, deprecatedSiddhiExtensionsMap);
        }
    }
Helper method to load the Siddhi extensions.

@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