Use jersey filter for authentification for less code