String profileName = System.getProperty(FIREFOX_PROFILE);
final FirefoxBinary binary = new FirefoxBinary();
decorateFirefoxBinary(binary);
OverriddenFirefoxDriver firefoxDriver = null;
if (profileName != null) {
ProfilesIni allProfilesIni = new ProfilesIni();
FirefoxProfile profile = allProfilesIni.getProfile(profileName);
profile.setAcceptUntrustedCertificates(false);
firefoxDriver = new OverriddenFirefoxDriver(binary, profile);
delegate.set(firefoxDriver);
} else {
firefoxDriver = null;