added jersey2 support