}
return driver;
}
private PreferencesWrapper loadFirefoxPreferences() {
PreferencesWrapper prefs;
FileReader reader;
try {
reader = new FileReader(customProfilePreferencesFile);
} catch (FileNotFoundException e) {
throw new RuntimeException(e);
}
try {
prefs = new PreferencesWrapper(reader);
} finally {
try {
reader.close();
} catch (IOException e) {
LOG.error("Unable to close firefox profile settings file", e);