See example usage in ProductLikeResource.

OPEN - task Fixed #26: Shiro security Subject integration with JAX-RS
resources
 http://github.com/soluvas/soluvas-framework/issues/issue/26