try {
busNumber = Integer.parseInt(busId);
} catch (NumberFormatException e) {
throw new CommandExecutionException(Command.ERROR_WRONG_VALUE);
}
Bus bus = session.getServer().getBus(busNumber);
if (bus == null) {
throw new CommandExecutionException
(Command.ERROR_UNSUPPORTED_DEVICE);
}
return bus;