// The specified name is not the same as the current
// value but it is already in use by another account.
throw ApiException.badRequest(String.format("The client name %s already exists.", clientName));
}
UpdateClientAction action = new UpdateClientAction(clientName, clientPassword);
apiClient.apply(action);
config.getAccountStore().update(account);
return redirect();