throw new NoSuchMetadataException( "Failed to find key pair: " + keyName + " for " + ownerFullName, e );
}
}
public static SshKeyPair fromPublicKey( OwnerFullName ownerFullName, String keyValue ) throws NoSuchMetadataException {
try {
<BUG>return Transactions.find( new SshKeyPair( ownerFullName, keyValue ) );
</BUG>
} catch ( Exception e ) {
throw new NoSuchMetadataException( "Failed to find key pair with public key: " + keyValue + " for " + ownerFullName, e );
}

throw new NoSuchMetadataException( "Failed to find key pair: " + keyName + " for " + ownerFullName, e );
}
}
public static SshKeyPair fromPublicKey( OwnerFullName ownerFullName, String keyValue ) throws NoSuchMetadataException {
try {
return Transactions.find( SshKeyPair.withPublicKey( ownerFullName, keyValue ) );
} catch ( Exception e ) {
throw new NoSuchMetadataException( "Failed to find key pair with public key: " + keyValue + " for " + ownerFullName, e );
