super();
try {
Db4o.configure().unicode(true);
Db4o.configure().activationDepth(99);
Db4o.configure().updateDepth(99);
ModelConfig db4oModelConfig = getDmConfig().getModelConfig(
db4oModelCode);
ModelConfig xmlModelConfig = getDmConfig().getModelConfig(
xmlModelCode);
if (db4oModelConfig != null && xmlModelConfig != null) {
if (db4oModelConfig.isPersistent()
&& xmlModelConfig.isPersistent()) {
String db4oPersistenceType = db4oModelConfig
.getPersistenceType();
String xmlPersistenceType = xmlModelConfig
.getPersistenceType();
if (db4oPersistenceType.equals("db.db4o")
&& xmlPersistenceType.equals("xml")) {
String databasePath = findDataPath(db4oModelConfig);
db = Db4o.openFile(databasePath);