public List<String> get() {
        List<String> scenarios = new ArrayList<>();
        String propertiesfilePath = mainPath + File.separator + RESOURCES + File.separator + SCENARIO_FILE;
        try (BufferedReader br = new BufferedReader(new FileReader(propertiesfilePath))) {
            String line = br.readLine();
            while (line != null) {
                if (!line.startsWith("#") && !"".equals(line)) {
                    String[] l = line.split("=");
                    scenarios.add(l[0]);
                }
                line = br.readLine();
            }
        } catch (IOException e) {
            logger.error(TECHNICAL_IO_EXCEPTION, e.getMessage(), e);
        }
        return scenarios;
    }
public List < String > get ( ) { List < String > scenarios = new ArrayList < > ( ) ; String propertiesfilePath = mainPath + File . separator + RESOURCES + File . separator + SCENARIO_FILE ; try ( BufferedReader br = new BufferedReader ( new FileReader ( propertiesfilePath ) ) ) { String line = br . readLine ( ) ; while ( line != null ) { if ( ! line . startsWith ( "#" ) && ! "" . equals ( line ) ) { String [ ] l = line . split ( "=" ) ; scenarios . add ( l [ 0 ] ) ; } line = br . readLine ( ) ; } } catch ( IOException e ) { logger . error ( TECHNICAL_IO_EXCEPTION , e . getMessage ( ) , e ) ; } return scenarios ; }
@return a list of available scenarios (name).