Added REST client factory