public function getDefinition($entryName)
    {
        $definition = new ObjectDefinition($entryName, $this->_className);
        $definition
            ->setMethods($this->_methods)
            ->setProperties($this->_properties)
            ->setScope($this->_scope);
        if ($this->_constructor) {
            $definition->setConstructor($this->_constructor);
        }
        return $definition;
    }