DeviceWithID
BDiskDevice *DeviceWithID(partition_id id) const;
if (message->FindInt32("device_id", &id) == B_OK && !DeviceWithID(id)) {
device = DeviceWithID(id);