sharing the session with a custom component

Hi,

I need to create a component that will get data from the server in JSON and display it in its own way. I would like to write the server side of this component (the part that generates the JSON) so I am able to access the current user who is authenticated in the Vaadin application.

Is there an example somewhere of such a thing?

Thanks in advance,

Candide