Client-side state representation infrastructure for GWT and Swing