private function renderJournalEntries(JournalEntryQuery $oQuery = null, Template $oEntryTemplatePrototype, Template $oFullTemplate, Template $oCommentTemplate = null, $sContainer = null, $sIdentifier = null)
 {
     if ($oQuery === null) {
         $oQuery = FrontendJournalEntryQuery::create();
     }
     if ($sIdentifier === null) {
         $sIdentifier = 'container';
         if ($sContainer === null) {
             $sContainer = $this->sContainer;
         }
     }
     if (null !== $this->aFilteredJournalIds) {
         $oQuery->filterByJournalId($this->aFilteredJournalIds);
     } else {
         if ($this->aJournalIds) {
             $oQuery->filterByJournalId($this->aJournalIds);
         }
     }
     if (!empty($this->aFilteredTags)) {
         $oQuery->filterByTagName($this->aFilteredTags);
     }
     $this->addPagination($oQuery, $oFullTemplate);
     $aEntries = $oQuery->orderByPublishAt(Criteria::DESC)->find();
     if (count($aEntries) === 0) {
         $oFullTemplate->replaceIdentifier('no_result_info', $this->renderNoResult());
         return;
     }
     // create journal entry button in preview
     if ($this->bIsPreview) {
         $oInnerTemplate = new Template(TemplateIdentifier::constructIdentifier($sIdentifier, $sContainer), null, true);
         $oAddJournals = parent::constructTemplate('preview_add_entry_button');
         $oAddJournals->replaceIdentifier('item_template_name', $oEntryTemplatePrototype->getTemplateName());
         $aJournalsAvailable = JournalQuery::create()->filterById($this->aFilteredJournalIds)->find();
         $bSingleJournals = count($aJournalsAvailable) === 1;
         foreach ($aJournalsAvailable as $oJournal) {
             if (!$bSingleJournals) {
                 $oAddJournals->replaceIdentifierMultiple('journal', array('id' => $oJournal->getId(), 'name' => $oJournal->getName()));
             } else {
                 $oAddJournals->replaceIdentifier('journal_id_data', " data-journal_id={$oJournal->getId()}");
                 continue;
             }
         }
         $oInnerTemplate->replaceIdentifierMultiple($sIdentifier, $oAddJournals, $sContainer);
         $oFullTemplate->replaceIdentifier($sIdentifier, TagWriter::quickTag('div', array('class' => 'journal_list-container'), $oInnerTemplate), $sContainer, Template::LEAVE_IDENTIFIERS);
     }
     foreach ($aEntries as $oEntry) {
         $oFullTemplate->replaceIdentifierMultiple($sIdentifier, $this->renderEntry($oEntry, clone $oEntryTemplatePrototype), $sContainer);
     }
 }