@Override
public String intercept(ActionInvocation invocation) throws Exception {
Object obj = invocation.getAction();
if (demo) {
CruxAction action = (CruxAction) obj;
action.getError()
.setMessage(
"This is a demo version. You are not allowed to save, edit or delete.");
if (!(obj instanceof SaveReportAction)) {
return "success";
} else {