if (apiKeyString.length() != 64) {
throw new InvalidApiKeyException(action.getApiKeyUserID(), ErrorCode.INVALID_API_KEY_ID);
}
clientFacade.createApiKey(apiKeyUserID, apiKeyString);
List<ApiKeyDto> apiKeys = clientFacade.getApiKeys();
UserDto user = clientFacade.getCurrentUser();
CharacterDto mainCharacter = user.getMainCharacter();
List<CharacterDto> characters = clientFacade.getCharacters();
List<CharacterNameDto> newCharacterNames = clientFacade.getAvailableNewCharacterNames();
PreferencesAddApiKeyActionResponse response = new PreferencesAddApiKeyActionResponse();
response.setApiKeys(apiKeys);