private function _createSession(ComPeopleDomainEntityPerson $person)
    {
        $session = $this->getService('com:application', array('session' => true))->getSession();

        $repo = $this->getService('repos:sessions.session');
        $entity = $repo->findOrAddNew(array('sessionId' => $session->getId()));
        $entity->setData(array(
            'nodeId' => (int) $person->id,
            'username' => (string) $person->username,
            'usertype' => (string) $person->usertype,
            'guest' => 0
        ));

        $session->set('person', (object) $person->getData());
    }