Made GenericObject GWT compatible (untested)