Get device attribute from service handler

Hi, I need get some device’s data from a custom service.

I pass as field the device to handler function, but I only get the device_id. How I can get the “complete” device?