protected function getRealAssetName($assetName)
    {
        $prefix = 0 === strpos($assetName, '?') ? '?' : '';
        $assetName = ltrim($assetName, '?');

        if (null !== $this->replacementManager && $this->replacementManager->hasReplacement($assetName)) {
            $assetName = $this->replacementManager->getReplacement($assetName);
        }

        return $prefix.$assetName;
    }