Replaced deprecated JFactory getURI method.