question: public List < Script > populateScripts ( final List < ScriptDetails > scriptDetails ) { final List < Script > addedScripts = new ArrayList < > ( ) ; for ( final ScriptDetails details : scriptDetails ) { final File scriptFile = new File ( details . getFile ( ) ) ; if ( ! scriptFile . exists ( ) ) { logger . warn ( "Script {} does not exist!" , details . getFile ( ) ) ; } else { logger . info ( "Adding script {}" , details . getFile ( ) ) ; Script script = scripts . get ( Script . getScriptIdFromFile ( scriptFile ) ) ; if ( script == null ) { script = new Script ( ) ; createFileBasedScript ( script , scriptFile , details ) ; addedScripts . add ( script ) ; addScript ( script ) ; } } } return addedScripts ; }
target:  Populates scripts from a list of script details.