public static function getClassNameWithoutNamespace($object)
    {
        $className = get_class($object);
        if (preg_match('@\\\\([\w]+)$@', $className, $matches)) {
            $className = $matches[1];
        }

        return $className;
    }