/** * Run the given task inside a transaction that is committed after the task is completed. * * @param task the task to run */ protected void inTransaction(Runnable task) { JPA.runInTransaction(task); }