docs: @Override
      public void destroyApplicationScopeResources(JaxRsModuleMetaData jaxRsModuleMetaData) {
  
          for (ModuleMetaData mmd : jaxRsModuleMetaData.getEnclosingModuleMetaDatas()) {
              managedObjectFactoryCache.remove(mmd);
              Iterator<ComponentMetaData> iter = beanManagers.keySet().iterator();
              while (iter.hasNext()) {
                  ComponentMetaData cmd = iter.next();
                  if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                      Tr.debug(tc, "destroyApplicationScopeResources - is " + cmd + " a child of " + mmd + "?");
                  }
  
                  if (mmd.equals(cmd.getModuleMetaData())) {
                      if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                          Tr.debug(tc, "destroyApplicationScopeResources - yes");
                      }
                      iter.remove();
                  }
              }
          }
          Bus bus = jaxRsModuleMetaData.getServerMetaData().getServerBus();
  
          @SuppressWarnings("unchecked")
          Map<String, BeanCustomizerContext> beanCustomizerContexts = (Map<String, BeanCustomizerContext>) bus.getProperty(JaxRsConstants.ENDPOINT_BEANCUSTOMIZER_CONTEXTOBJ);
          if (beanCustomizerContexts == null) {
              return;
          }
          @SuppressWarnings("unchecked")
          Map<Class<?>, ManagedObject<?>> newContext = (Map<Class<?>, ManagedObject<?>>) beanCustomizerContexts.get(createCustomizerKey(this));
          if (newContext == null) {
              return;
          }
          Collection<ManagedObject<?>> objects = newContext.values();
          for (ManagedObject<?> mo : objects) {
  
              if (mo != null) {
                  mo.release();
              }
          }
  
  //destroy application
          ManagedObject<?> appObject = (ManagedObject<?>) jaxRsModuleMetaData.getManagedAppRef();
          if (appObject != null) {
              appObject.release();
          }
      }