src/Core/HttpClients/SyncRestHandler.php
public function updateContext($newServiceContext){
        if(isset($newServiceContext) && $newServiceContext instanceof ServiceContext){
            $this->context = $newServiceContext;
        }else{
           throw new SdkException("Cannot Update Service Context. The service context either is undefined or not an instance of ServiceContext.");
        }
    }
public function updateContext($newServiceContext){
        if(isset($newServiceContext) && $newServiceContext instanceof ServiceContext){
            $this->context = $newServiceContext;
        }else{
           throw new SdkException("Cannot Update Service Context. The service context either is undefined or not an instance of ServiceContext.");
        }
    }
Update the Service Context of the request.

@param ServiceContext  $newServiceContext      The new service context that will be used for the request