Changed SampleController to ServiceBasedRestController