public PersistentEntity(IEntity entity, IPersistentModel persistentModel) {
ModelConfig modelConfig = persistentModel.getDomainModel()
.getModelConfig();
if (modelConfig.isPersistent()) {
if (modelConfig.getPersistenceType().equalsIgnoreCase("xml")) {
storeEntity = new XmlEntity(entity, persistentModel);
} else if (modelConfig.getPersistenceType().equalsIgnoreCase(
"db.dbLite")) {
storeEntity = new DbEntity(entity, persistentModel);
} else if (modelConfig.getPersistenceType().equalsIgnoreCase(
"db.Hibernate")) {