private function transformArray(array $swagger, array $common, array $trans)
    {
        // initialize with common array keys
        $guzzle = array_intersect_key($swagger, $common);
        // translate other naming differences
        foreach ($trans as $source => $target) {
            if (isset($swagger[$source])) {
                $guzzle[$target] = $swagger[$source];
            }
        }

        return $guzzle;
    }