removed old JFactory::getDocument()