/**
  * Read function.
  * Handles all the read requests ( lists and forms ) and triggers the appropriate view method.
  *
  * @param string $mode		The mode of the read function. Pass 'row' for retrieving a single row or 'list' to retrieve a collection of rows.
  * @param mixed $id			The id of the row to load when we are retrieving a single row.
  *
  * @return void
  */
 protected function read($mode = 'row', $id = null)
 {
     $application = JFactory::getApplication();
     $itemId = $application->input->get('itemId', 0, 'int');
     if ($itemId) {
         $this->embed($id);
     } else {
         parent::read($mode, $id);
     }
 }