final boolean writeMouseCommand(int cmd) {
final boolean writeMouseCommand(int cmd) throws DeviceException {
	final boolean writeMouseCommand(int cmd) {		// First clear the mouse channel, otherwise we might read		// old data back		mouseChannel.clear();		// Transmit the command		writeController(CCMD_WRITE_MOUSE);		writeData(cmd);		int data;		try {			data = mouseChannel.read(50);		} catch (IOException ex) {			log.debug("IOException in readMouse", ex);			return false;		} catch (TimeoutException ex) {			log.debug("Timeout in readMouse");			return false;		} catch (InterruptedException ex) {			log.debug("Interrupted in readMouse");			return false;		}		if (data == REPLY_ACK) {			return true; // command acknowledged		} else if (data == REPLY_RESEND) {			log.debug("Mouse replied with RESEND");		} else {			log.debug("Invalid reply 0x" + Integer.toHexString(data));		}		return false; // on error	}