em = AppCatalogJPAUtils.getEntityManager();
em.getTransaction().begin();
AppCatalogQueryGenerator generator = new AppCatalogQueryGenerator(COMPUTE_RESOURCE);
generator.setParameter(ComputeResourceConstants.RESOURCE_ID, identifier);
Query q = generator.selectQuery(em);
ComputeResource computeResource = (ComputeResource) q.getSingleResult();
ComputeResourceResource computeResourceResource = (ComputeResourceResource) AppCatalogJPAUtils.getResource(AppCatalogResourceType.COMPUTE_RESOURCE, computeResource);
em.getTransaction().commit();
em.close();
return computeResourceResource;
} catch (ApplicationSettingsException e) {