Preconditions.checkNotNull(robotId);
Preconditions.checkNotNull(location);
Preconditions.checkArgument(!location.isEmpty());
if (accountStore.getAccount(robotId) != null) {
throw new RobotRegistrationException(robotId.getAddress()
+ " is already in use, please choose another one.");
}
return registerRobot(robotId, location);
}