throw new WebApplicationException(Response.Status.PRECONDITION_FAILED);
}
persistenceSvc.beginTx();
EntityManager em = persistenceSvc.getEntityManager();
Immunization entity = data.resolveEntity(em);
createEntity(data.resolveEntity(em));
persistenceSvc.commitTx();
return Response.created(uriInfo.getAbsolutePath().resolve(entity.getImmunizationId() + "/")).build();
} finally {
persistenceSvc.close();
}
}