break;
case EXPERIMENT:
generator = new QueryGenerator(EXPERIMENT);
generator.setParameter(ExperimentConstants.EXPERIMENT_ID, name);
generator.setParameter(ExperimentConstants.GATEWAY_NAME, gatewayName);
q = generator.deleteQuery(em);
q.executeUpdate();
break;
case APPLICATION_DESCRIPTOR:
generator = new QueryGenerator(APPLICATION_DESCRIPTOR);
generator.setParameter(ApplicationDescriptorConstants.APPLICATION_DESC_ID, name);