protected function _process($path)
{
$patterns = [['Replace $this->_Collection with $this->_registry', '#\\$this->_Collection#', '$this->_registry'], ['Replace ComponentCollection arguments', '#ComponentCollection#', 'ComponentRegistry'], ['Rename ComponentCollection', '#ComponentCollection#', "ComponentRegistry"], ['Rename HelperCollection', '#HelperCollection#', "HelperRegistry"], ['Rename TaskCollection', '#TaskCollection#', "TaskRegistry"]];
$original = $contents = $this->Stage->source($path);
$contents = $this->_updateContents($contents, $patterns);
return $this->Stage->change($path, $original, $contents);
}