Mapping domain objects to webmodels using proxies