protected CreateKeyPairResponseType newKey(String ownerID, String keyName)
throws KeyGenException, IOException, DisabledException {
if (this.pubkeyOnly) {
throw new DisabledException("SSH key generation is disabled");
}
final JSch jsch=new JSch();
final KeyPair kpair;
try {