*/
public Resource get(ResourceType type, Object name) {
if (type == ResourceType.EXPERIMENT) {
EntityManager em = ResourceUtils.getEntityManager();
em.getTransaction().begin();
QueryGenerator generator = new QueryGenerator(EXPERIMENT);
// generator.setParameter(ExperimentConstants.PROJECT_NAME, name);
// generator.setParameter(ExperimentConstants.USERNAME, getWorker().getUser());
generator.setParameter(ExperimentConstants.EXPERIMENT_ID, name);
Query q = generator.selectQuery(em);
Experiment experiment = (Experiment) q.getSingleResult();
ExperimentResource experimentResource = (ExperimentResource)
Utils.getResource(ResourceType.EXPERIMENT, experiment);
em.getTransaction().commit();
em.close();