credential.setOwner(user.getUserId());
credential.setAccount(user.getAccount());
try {
savedCredential = credentialRepository.save(credential);
} catch (DataIntegrityViolationException ex) {
throw new DuplicateKeyValueException(credential.getName(), ex);
}
createAzureCertificates(user, savedCredential);
websocketService.sendToTopicUser(user.getUsername(), WebsocketEndPoint.CREDENTIAL,
new StatusMessage(credential.getId(), credential.getName(), Status.AVAILABLE.name()));