public void save() throws RegistryException {
EntityManager em = null;
try {
em = ResourceUtils.getEntityManager();
ApplicationOutput existingOutput = em.find(ApplicationOutput.class, new ApplicationOutput_PK(outputKey, taskDetailResource.getTaskId()));
em.close();
em = ResourceUtils.getEntityManager();
em.getTransaction().begin();
ApplicationOutput applicationOutput = new ApplicationOutput();