return serviceDescriptorResource;
case APPLICATION_DESCRIPTOR:
generator = new QueryGenerator(APPLICATION_DESCRIPTOR);
generator.setParameter(ApplicationDescriptorConstants.APPLICATION_DESC_ID, name);
generator.setParameter(ApplicationDescriptorConstants.GATEWAY_NAME, gatewayName);
q = generator.selectQuery(em);
Application_Descriptor eAppDesc = (Application_Descriptor) q.getSingleResult();
ApplicationDescriptorResource applicationDescriptorResource =
(ApplicationDescriptorResource)Utils.getResource(ResourceType.APPLICATION_DESCRIPTOR, eAppDesc);
em.getTransaction().commit();
em.close();