protected function getTablegateway(Resource\ResourceType $resourceType)
    {
        $type = $resourceType->getValue();
        
        if (!isset($this->tableGateways[$type])) {
            $this->tableGateways[$type] = new TableGateway($type, $this->zendDbAdapter);
        }
        
        return $this->tableGateways[$type];
    }