Java REST api built with Jersey framework