Modification to basic authentication to implement ContainerRequestFilter