private Map < String , Set < PersonRenderer > > createWholeIndex ( ) { logger . info ( "In getWholeIndex" ) ; final Map < String , Set < PersonRenderer > > aMap = new TreeMap <> ( ) ; if ( ! getRenderingContext ( ) . isUser ( ) ) { logger . info ( "Leaving getWholeIndex not logged in" ) ; return aMap ; } final Collection < Person > persons = getGedObject ( ) . find ( Person . class ) ; for ( final Person person : persons ) { if ( isHidden ( person ) ) { continue ; } locatePerson ( aMap , person ) ; } logger . info ( "Leaving getWholeIndex" ) ; return aMap ; }
Build the index .