REST app using jersey framework