autowire rest client