if (hasSSHPublicKey(name)) {
throw new OpenShiftSSHKeyException(
"Could not add new key {0} with the name {1}. The key is already stored with a different name. Public key have to be unique.",
key.getPublicKey(), name);
}
KeyResourceDTO keyDTO = new AddSShKeyRequest().execute(key.getKeyType(), name, key.getPublicKey());
return put(keyDTO);
}