First time trying java restful service