public function getEntityClass($type)
    {
        if (!isset($this->config['entity_class'][$type])) {
            throw new Exception("You are trying to access a configuration that does not exists.");
        }

        return $this->config['entity_class'][$type];
    }