/**
* save published workflow to the database
*/
public void save() {
EntityManager em = ResourceUtils.getEntityManager();
Published_Workflow existingWF = em.find(Published_Workflow.class, new Published_Workflow_PK(gateway.getGatewayName(), name));
em.close();
em = ResourceUtils.getEntityManager();
em.getTransaction().begin();
Published_Workflow publishedWorkflow = new Published_Workflow();