private function locateEntity($entityAlias)
    {
        if (1 === preg_match('/^.*?\\.entity\\..*?\\.class$/', $entityAlias)) {
            if (self::$container->hasParameter($entityAlias)) {
                return $this->getParameter($entityAlias);
            }
        }

        if (1 === preg_match('/^[^:]+:[^:]+$/', $entityAlias)) {
            $possibleEntityAliasShortMapping = str_replace(':', '.entity.', $entityAlias.'.class');
            if (self::$container->hasParameter($possibleEntityAliasShortMapping)) {
                return $this->getParameter($possibleEntityAliasShortMapping);
            }
        }

        return $entityAlias;
    }