public function setRegistryConfig(RegistryConfig $registryConfig = null) { $this->registryConfig = $registryConfig; return $this; }