protected function getModuleName()
    {
        if (empty($this->appModuleName)) {
            $className = trim(get_class($this));
            $namespace = substr(__NAMESPACE__, 0, strrpos(__NAMESPACE__, '\\'));
            $namespace = substr($namespace, 0, strrpos($namespace, '\\')) . '\Module\\';
            $className = trim(str_replace(array($namespace), array(''), $className));

            $this->appModuleName = substr($className, 0, strpos($className, '\\'));
        }

        return $this->appModuleName;
    }