question: public void populateQuestionsList ( String userDN , String orgDN ) { PWResetQuestionModel model = getModel ( ) ; int maxQuestions = model . getMaxNumQuestions ( DNMapper . orgNameToRealmName ( orgDN ) ) ; Map < String , String > secretMap = model . getSecretQuestions ( userDN , orgDN ) ; if ( CollectionUtils . isNotEmpty ( secretMap ) ) { if ( maxQuestions >= 0 && maxQuestions < secretMap . size ( ) ) { List < String > secretKeys = new ArrayList < > ( secretMap . keySet ( ) ) ; Collections . shuffle ( secretKeys ) ; questionKeys = new ArrayList < > ( maxQuestions ) ; for ( int i = 0 ; i < maxQuestions ; i ++ ) { questionKeys . add ( secretKeys . get ( i ) ) ; } } else { questionKeys = new ArrayList < > ( secretMap . keySet ( ) ) ; } } }
target:  Populates secret questionKeys list