Rest using jersey