private static void installBouncyCastleSecurityProvider() {
        BouncyCastleProvider bcProvider = new BouncyCastleProvider();
        if (Security.addProvider(bcProvider) != -1) {
            log.fine("Installed '" + bcProvider.getInfo() + "' as Java Security Provider");
        } else {
            Provider alreadyInstalledBcProvider = Security.getProvider(BouncyCastleProvider.PROVIDER_NAME);
            log.warning("Unable to install '" + bcProvider.getInfo() + "' as Java Security Provider. " +
                    "A provider '" + alreadyInstalledBcProvider.getInfo() + "' is already installed.");
        }
    }
Eagerly install BouncyCastle as security provider. It's done here to ensure no bundle is able install this security provider.
If a bundle install this provider and the bundle is later uninstall,
it will break havoc if the installed security provider tries to load new classes.
container-disc/src/main/java/com/yahoo/container/jdisc/ConfiguredApplication.java