9899100101102103104105106107108
MaintenanceCommand cmd = (MaintenanceCommand)StructrApp.getInstance(securityContext).command(taskOrCommand); if (cmd.requiresEnclosingTransaction()) { try (final Tx tx = app.tx()) { cmd.execute(propertySet); tx.success(); } } else {
104105106107108109110111112113114
tx.success(); } } else { cmd.execute(propertySet); } } else { return new RestMethodResult(HttpServletResponse.SC_NOT_FOUND); }