if (params.get("password") != null) {
params.put(PropertiesReader.OCE_CFG_1CDB_PASSWORD,
params.get("password"));
}
ApplicationDriver driver = null;
if (params != null
&& params.get(PropertiesReader.OCE_CFG_DRIVER) != null) {
driver = ApplicationDriver.loadDriver((String) params
.get(PropertiesReader.OCE_CFG_DRIVER));
if (driver == null) {
driver = new DefaultApplicationDriver();
}
}
OCApp app = OCApp.getNewInstance();
if (params.get("autoRegistration") != null) {
Boolean autoReg = Boolean.valueOf(params
.getProperty("autoRegistration"));
driver.setAutoRegistration(autoReg);
}
app.setApplicationDriver(driver);
try {