public function resource($resourceDefinition)
    {
        $parameter = new ResourceParameter($resourceDefinition);
        $parameter->setRoute($this->route);

        $this->parameters[$resourceDefinition] = $parameter;

        return $parameter;
    }