public function getIdentity()
    {
        $identity = parent::getIdentity();

        if ( null !== $identity && ! $this->identityRefreshed )
        {
            $user = $this->getUserModel()
                         ->find( $identity->id );

            if ( ! empty( $user ) )
            {
                $this->getStorage()
                     ->write( $identity = $user );

                $this->identityRefreshed = true;
            }
        }

        return $identity;
    }