code: protected void unsetDataSourceFactory(ServiceReference<ResourceFactory> ref) {
          if (tc.isDebugEnabled())
              Tr.debug(tc, "unsetDataSourceFactory, ref " + ref);
          // The non-transactional DataSource is about to go away. We need to shutdown the
          // recovery log while we still have a database connection.
          if (tmsRef != null)
              tmsRef.doShutdown(_isSQLRecoveryLog);
          dataSourceFactoryRef.unsetReference(ref);
      }
docs: /*
  Called by DS to dereference DataSourceFactory