An idea of authentication filter in Java EE 7 / Jersey