IPersistentModel persistentModel) {
ModelConfig modelConfig = persistentModel.getDomainModel()
.getModelConfig();
if (modelConfig.isPersistent()) {
if (modelConfig.getPersistenceType().equalsIgnoreCase("xml")) {
storeEntities = new XmlEntities(entities, persistentModel);
} else if (modelConfig.getPersistenceType().equalsIgnoreCase(
"db.db4o")) {
storeEntities = new Db4oEntities(entities, persistentModel);
} else {
log