code: protected synchronized void unsetKeyStore(KeystoreConfig config) {
          if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
              Tr.event(tc, "Removing keystore: " + config.getId());
          }
          keystoreIdMap.remove(config.getId());
          keystorePidMap.remove(config.getPid());
          KeyStoreManager.getInstance().clearKeyStoreFromMap(config.getId());
          KeyStoreManager.getInstance().clearKeyStoreFromMap(config.getPid());
          for (Iterator<Map.Entry<String, RepertoireConfigService>> it = repertoireMap.entrySet().iterator(); it.hasNext();) {
  
              RepertoireConfigService rep = it.next().getValue();
              if (rep.getKeyStore() == config || rep.getTrustStore() == config) {
                  it.remove();
                  repertoirePropertiesMap.remove(rep.getAlias());
                  repertoirePIDMap.remove(rep.getPID());
              }
          }
      }
docs: Method will be called for each KeyStoreConfigService that is unregistered
  in the OSGi service registry. We must remove this instance from our
  internal map.
  
  @param ref Reference to an unregistered KeyStoreConfigService