code: private Provider createPKCS11Provider(String configFileName) throws Exception {
  
          Provider provider = null;
          if (JavaInfo.majorVersion() >= 9) {
              if (tc.isDebugEnabled())
                  Tr.debug(tc, "The java version is 9 or higher so take new path to setup the pkcs11 provider.");
              provider = getProvider(configFileName);
          } else {
              if (tc.isDebugEnabled())
                  Tr.debug(tc, "Calling legacy method to setup the pkcs11 provider.");
              provider = getProviderLegacy(configFileName);
          }
          return provider;
      }
docs: /*
  Create the pkcs11 provider and config file that will be loaded in the provider list