AndroidEmulator findEmulator(String avdName) {
      for (AndroidDevice device : getDevices()) {
        if (device instanceof AndroidEmulator) {
          AndroidEmulator emulator = (AndroidEmulator) device;
          if (avdName.equals(emulator.getAvdName())) {
            return emulator;
          }
        }
      }
      return null;
    }
Removes the given device from store so that it cannot be any longer be used for testing. This
can happen if e.g. the hardware device gets unplugged from the computer.

@param device the device to remove.
@throws DeviceStoreException when parameter is not type of 'DefaultHardwareDevice'.
selendroid-standalone/src/main/java/io/selendroid/standalone/server/model/DeviceStore.java