CFY-716 added a method for creating a rest client