public function getModel()
    {
        if (!$this->isLoggedIn()) {
            throw new NotLoggedInException();
        }

        if (isset($this->loggedInUserIdentifier)) {
            try {
                return SolutionSchema::getModel($this->modelClassName, $this->loggedInUserIdentifier);
            } catch (RecordNotFoundException $er) {
                throw new NotLoggedInException();
            }
        }

        throw new NotLoggedInException();
    }