code: public void serviceChanged(ServiceEvent evt) {
          if (evt.getServiceReference() == logSR
                  && evt.getType() == ServiceEvent.UNREGISTERING) {
              ungetLogService();
          }
      }
docs: * Service listener entry point. Releases the log service object if * one
  has been fetched. * *
  
  @param evt
  Service event