protected function getParameterReplacements($parameters, TokenInterface $token)
    {
        $replacements = $parameters;
        foreach ($parameters as $key => $param) {
            if (strpos($param, '{') === 0 && strpos($param, '}') === strlen($param) - 1) {
                $replacements[$key] = $token->getParam(substr($param, 1, -1));
            }
        }
        return $replacements;
    }