public void addScripts(final String directory){
  final List<File> files=new ArrayList<File>();
  if (directory != null && !directory.isEmpty()) {
    files.addAll(FileUtils.getFileNamesForDirectory(directory,SCRIPT_EXTENSION));
  }
 else {
    logger.error("Given directory is empty");
  }
  populateScriptsFromFileList(files);
}

public void addScripts ( final String directory ) { final List < File > files = new ArrayList < File > ( ) ; if ( directory != null && ! directory . isEmpty ( ) ) { files . addAll ( FileUtils . getFileNamesForDirectory ( directory , SCRIPT_EXTENSION ) ) ; } else { logger . error ( "Given directory is empty" ) ; } populateScriptsFromFileList ( files ) ; }
adds scripts from the given directory .
