protected function replacePlaceholdersInPath($path, $arguments)
    {
        foreach ($arguments as $argumentName => $argumentValue) {
            $path = str_replace('{' . $argumentName . '}', $argumentValue, $path);
        }

        return $path;
    }