if (config.getAccountStore().getByClientName(clientName) != null) {
throw ApiException.badRequest(String.format("The client name %s already exists.", clientName));
}
CreateClientAction action = new CreateClientAction(clientName, clientPassword);
ApiClient apiClient = account.add(action);
config.getAccountStore().update(account);
return Response.seeOther(new URI("manage/api-client/"+apiClient.getClientName())).build();