code: @Override
      public void afterServiceInvoke(Object serviceObject, boolean isSingleton, Object context) {
          @SuppressWarnings("unchecked")
          Map<Class<?>, ManagedObject<?>> newContext = (Map<Class<?>, ManagedObject<?>>) (context);
  
          ManagedObject<?> mo = newContext.get(serviceObject.getClass());
          if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
              Tr.debug(tc, "afterServiceInvoke mo=" + mo + " isSingleton=" + isSingleton + " newContext={0}", newContext);
          }
          if (!isSingleton) {
              if (mo != null) {
                  mo.release();
              }
              newContext.put(serviceObject.getClass(), null);
          }
  
      }
docs: /*
  (non-Javadoc)
  
  @see com.ibm.ws.jaxrs20.api.JaxRsFactoryBeanCustomizer#afterServiceInvoke(java.lang.Object, boolean, java.lang.Object)