Create context manager for setting REST's client container