question: private void entryListToHtmlAndJson ( String paneId , final StringBuilder result , ResultsPaginator paginator , List < ? > results , SourceEmbedContext embedContext ) throws IOException { startItemList ( result , paneId ) ; final ArrayList < EntryInfo > entryInfoList = new ArrayList < EntryInfo > ( ) ; for ( final Object entryUncasted : results ) { final Entry entry = ( Entry ) entryUncasted ; final int resultNumber = paginator . next ( ) ; if ( resultNumber == - 1 ) { continue ; } else if ( resultNumber == 0 ) { break ; } addEntryHtmlToList ( entry , result , resultNumber , paneId , embedContext ) ; addEntryToInfoList ( entry , entryInfoList ) ; } finishItemList ( result ) ; result . append ( "\n<script type=\"application/json\" class=\"entryInfoDictJson\">\n" ) ; addJsonForEntryInfos ( result , entryInfoList , paneId ) ; result . append ( "\n</script>\n" ) ; paginator . done ( ) ; }
target:  Converts the entry list to HTML and JSON. 