public static function splitName($class)
    {
        $pos = strrpos($class, '\\');
        if ($pos === false) {
            return [null, $class];
        } else {
            return [substr($class, 0, $pos), substr($class, $pos+1)];
        }
    }