public function registryAlias($registryAlias = null)
    {
        deprecationWarning(
            get_called_class() . '::registryAlias() is deprecated. ' .
            'Use setRegistryAlias()/getRegistryAlias() instead.'
        );
        if ($registryAlias !== null) {
            $this->setRegistryAlias($registryAlias);
        }

        return $this->getRegistryAlias();
    }