} else {
String error1 = CheckConfigBean.checkORMDBInfo(dcb,filePath);
if (error1 == null) {
DBInfoConfigBeanCache.add(dcb.getDsName(), dcb);
DataSource ds = DataSourceCreator.create(dcb);
DataSourceWrap dsw = new DataSourceWrap(dcb.getDsName(), ds);
String error2 = dsw.getConnection() == null ? ConfigInfoCons.CANNOT_GET_DB_CON : null;
if (error2 != null)
if (error == null)
error = error2;
else