Using jersy library to create rest service