Actions, RPC and Shared State

How to implement Action.Container in new RPC and SharedState paradigm ?
For example ContextMenu on TabSheet tabs, with different actions on each tab.
In Vaadin 6 we use paintContent and paint all container actions to tabsheet json and tab actions mapping to tab json.