public static function validateTag($tag, AssetTypeInterface $assetType, VersionParser $parser = null)
    {
        if (\in_array($tag, array('master', 'trunk', 'default'), true)) {
            return false;
        }

        if (null === $parser) {
            $parser = new VersionParser();
        }

        try {
            $tag = $assetType->getVersionConverter()->convertVersion($tag);
            $tag = $parser->normalize($tag);
        } catch (\Exception $e) {
            $tag = false;
        }

        return $tag;
    }