code: private void cleanupAdminObjectServiceInfo(NamedAdminObjectServiceInfo aosInfo) {
          if (aosInfo.serviceRef == null && aosInfo.endpointFactories.isEmpty()) {
              endpointActivationServices.remove(aosInfo.id);
          }
      }
docs: Remove the NamedAdminObjectServiceInfo from {@link #adminObjectServices} if
  it is no longer needed.
  
  <p>Caller must hold a lock on this object.