code: def update(self):
          
          with self._lock:
              if self._state == Bundle.ACTIVE:
                  self.stop()
                  self.start()
docs: Stops and starts the framework, if the framework is active.
  
          :raise BundleException: Something wrong occurred while stopping or
                                  starting the framework.