working version with spring+jersey