This function expected only Devices that have keys (didn't have during unit testing).
Could assert; not sure if Device could ever NOT have a key.