@PUT @Path("{pId}/{tId}/commit") public Response commit( @PathParam("pId") @DefaultValue("") String pId, @PathParam("tId") @DefaultValue("") String tId, String content) { Work work = faults.get(pId); if (work != null) work.commitCnt += 1; return terminate(pId, tId, TxStatusMediaType.TX_COMMITTED); }