private void initializeExtension ( InstalledExtension installedExtension , String namespaceToLoad , Map < String , Set < InstalledExtension > > initializedExtensions ) throws ExtensionException { if ( installedExtension . getNamespaces ( ) != null ) { if ( namespaceToLoad == null ) { for ( String namespace : installedExtension . getNamespaces ( ) ) { initializeExtensionInNamespace ( installedExtension , namespace , initializedExtensions ) ; } } else if ( installedExtension . getNamespaces ( ) . contains ( namespaceToLoad ) ) { initializeExtensionInNamespace ( installedExtension , namespaceToLoad , initializedExtensions ) ; } } else if ( namespaceToLoad == null ) { initializeExtensionInNamespace ( installedExtension , null , initializedExtensions ) ; } }
Initialize extension .