public function getRegistry()
{
if ($this->_registry === null) {
$this->_registry = RegistryFactory::getRegistry($this->getType(), $this->getComposer()->getRepositoryManager());
}
return $this->_registry;
}