AdaptrexPersistence persistence = Adaptrex.getAdaptrex().getPersistenceManager().getPersistence(factoryName);
AdaptrexSession session = new AdaptrexSession(persistence);
Class<?> clazz = persistence.getEntityClass(entityName);
DataConfig config = new DataConfig(clazz, persistence);
Model model = new Model(session, config, id);
persistence.deleteEntity(session, model.getEntity());
session.close();
return model;
}