protected function getOriginalClassName($aliasOrClassName)
    {
        // Is an original class which has an alias
        if (array_key_exists($aliasOrClassName, $this->aliasMap['classNameToAliasMapping'])) {
            return $aliasOrClassName;
        }

        // Is an alias (we're graceful regarding casing for alias definitions)
        $lowerCasedClassName = strtolower($aliasOrClassName);
        if (array_key_exists($lowerCasedClassName, $this->aliasMap['aliasToClassNameMapping'])) {
            return $this->aliasMap['aliasToClassNameMapping'][$lowerCasedClassName];
        }
        // No alias registered for this class name, return and remember that info
        return $this->aliasMap['classNameToAliasMapping'][$aliasOrClassName] = NULL;
    }