Change JRegistry to Joomla\Registry\Registry