public static function findModuleByNamespace($moduleNamespace, $findOnlyParent = true)
    {
        $result = null;
        foreach (static::$_modulesNs as $class => $nsList) {
            foreach ($nsList as $i => $ns) {
                if ($ns == $moduleNamespace) {
                    if ($findOnlyParent && $i == 0) {
                        continue;
                    }
                    if (empty($result)) {
                        $result = $class;
                    } else {
                        throw new Exception("Find duplicate namespace '{$moduleNamespace}' for modules '{$result}' and '{$class}'");
                        //return false;
                    }
                }
            }
        }
        return $result;
    }