} catch (AmazonServiceException e) {
if (e.getErrorCode().equals(ErrorCodes.DUPLICATE_KEYPAIR)) {
LOG.info("<< Duplicate key pair found. Re-importing from pool description");
client.deleteKeyPair(new DeleteKeyPairRequest().withKeyName(keyName));
importPoolPublicKeyPair(client, keyName, publicKey);
}
}
}