using the gwt services in the rest resources.