sample app using java rest