bean and restful service implementation (based on kitchensink)