partial rewrite of scoot client for jersey 1.16