Fix for 3.0.x compatibility when creating RestTemplate for client-authorized API bindings