public function getEntity()
    {
        if (!($this->_entity instanceof Entity)) {
            $class = $this->_entity;
            $this->setEntity(new $class());
        }
        return $this->_entity;
    }