public function transformRequest($api, $endpoint, Request $requestIn, Request $requestOut)
    {
        $transformations = $this->getRequestTransformations($api, $endpoint);

        if (!empty($transformations)) {
            foreach ($transformations as $transformation) {
                $transformedRequest = $transformation->transformRequest($requestIn, $requestOut);
                $requestOut = $transformedRequest instanceof Request ? $transformedRequest : $requestOut;
            }

            return $requestOut;
        }

        // TODO [taafeba2]: add logging
        return $requestOut;
    }