/**
  * Création d'une configuration
  *
  * @param config
  */
 public void create(DataConfiguration config) {
   DataConfigurationAccess access = new DataConfigurationAccess();
   try {
     config.setDate(new Date());
     config.setActive(false);
     access.createConfiguration(config);
   } finally {
     access.close();
   }
 }
 /**
  * Changement de l'activation d'une configuration
  *
  * @param id
  * @param active
  */
 public void changeActive(int id, boolean active) {
   DataConfigurationAccess access = new DataConfigurationAccess();
   try {
     DataConfiguration item = access.getConfigurationByKey(id);
     item.setActive(active);
     access.updateConfiguration(item);
   } finally {
     access.close();
   }
 }