#vulnerable code 
                                protected List<String> getBetaVersions() {
        List<String> betaVersions = new ArrayList<>();
        DriverManagerType[] browsersWithBeta = { CHROME };
        for (DriverManagerType driverManagerType : browsersWithBeta) {
            String key = driverManagerType.name().toLowerCase() + BETA;
            Optional<String> betaVersionString = getDriverVersionForBrowserFromProperties(
                    key);
            if (betaVersionString.isPresent()) {
                betaVersions.addAll(
                        Arrays.asList(betaVersionString.get().split(",")));
            }
        }
        return betaVersions;
    } 
                            #location 6 
                            #vulnerability type THREAD_SAFETY_VIOLATION
#fixed code
                                protected List<String> getBetaVersions() {
        List<String> betaVersions = new ArrayList<>();
        DriverManagerType[] browsersWithBeta = { CHROME };
        for (DriverManagerType driverManagerType : browsersWithBeta) {
            String key = driverManagerType.name().toLowerCase() + BETA;
            Optional<String> betaVersionString = getDriverVersionForBrowserFromProperties(
                    key, true);
            if (betaVersionString.isPresent()) {
                betaVersions.addAll(
                        Arrays.asList(betaVersionString.get().split(",")));
            }
        }
        return betaVersions;
    }