public void save() throws RegistryException {
EntityManager em = null;
try {
em = ResourceUtils.getEntityManager();
ApplicationInput existingInput = em.find(ApplicationInput.class, new ApplicationInput_PK(inputKey, taskDetailResource.getTaskId()));
em.close();
em = ResourceUtils.getEntityManager();
em.getTransaction().begin();
ApplicationInput applicationInput = new ApplicationInput();