trying without ajax but did not work. :(
OPEN - task 26: Shiro security Subject integration with JAX-RS resources
 http://github.com/soluvas/soluvas-framework/issues/issue/26