code: private synchronized void removedLoginModule() {
          boolean changedEntries = false;
  
          // Check for context entries that are now unsatisfied
          Iterator<ServiceReference<JAASLoginContextEntry>> i = jaasLoginContextEntries.references().iterator();
          while (i.hasNext()) {
              ServiceReference<JAASLoginContextEntry> contextEntryRef = i.next();
              String[] entryModulePids = (String[]) contextEntryRef.getProperty(JAASLoginContextEntryImpl.CFG_KEY_LOGIN_MODULE_REF);
              if (!haveAllModules(entryModulePids)) {
                  i.remove(); // remove from context entry map
                  pendingContextEntryRefs.add(contextEntryRef);
                  changedEntries = true;
              }
          }
  
          if (changedEntries) {
              modified(properties);
          }
      }
docs: Iterate through context entries, find context entries
  that are now missing required login modules -- remove them
  and add to the pending list.
  
  @param moduleId login module config id