use jersey for restful api