public function fetchLocalUsername()
    {
        $localUsername = null;

        $role = $this->getRole();
        if ($role) {
            $roleParts = explode(':', $role->getRole());
            if (count($roleParts) === 3) {
                $localUsername = $roleParts[2];
            }
        }

        return $localUsername;
    }