private AndroidDevice findDevice(String serialNumber) {
		AndroidDevice device = null;
		Iterator<AndroidDevice> androidDevicesIterator = ServerConnectionManager
				.getInstance().getDevices().iterator();
		while ((device == null) && androidDevicesIterator.hasNext()) {
			AndroidDevice next = androidDevicesIterator.next();
			if (next.getSerialNumber().compareTo(serialNumber) == 0) {
				device = next;
			}
		}
		return device;
	}