em.getTransaction().begin();
AppCatalogQueryGenerator generator = new AppCatalogQueryGenerator(GSISSH_POSTJOBCOMMAND);
generator.setParameter(GSISSHPostJobCommandConstants.SUBMISSION_ID,
ids.get(GSISSHPostJobCommandConstants.SUBMISSION_ID));
generator.setParameter(GSISSHPostJobCommandConstants.COMMAND, ids.get(GSISSHPostJobCommandConstants.COMMAND));
Query q = generator.selectQuery(em);
GSISSHPostJobCommand gsisshPostJobCommand = (GSISSHPostJobCommand) q.getSingleResult();
GSISSHPostJobCommandResource gsisshPostJobCommandResource =
(GSISSHPostJobCommandResource) AppCatalogJPAUtils.getResource(
AppCatalogResourceType.GSISSH_POSTJOBCOMMAND, gsisshPostJobCommand);
em.getTransaction().commit();