CommandEntryManager commandEntryManager = new CommandEntryManager(locale,session);
CommandEntry commandEntry = commandEntryFromRequest(req, commandEntryManager);
checkSortLabel(req, commandEntry,commandEntryManager.getTemplateCommandEntries(getCurrentGroup(req), null));
// set template flag
commandEntry.setUseAsTemplate(1);
commandEntryManager.modify(commandEntry);
LOGGER.info("set template flag in command entry #" + commandEntry.getId());
//return list(mapping,form,req,resp);
return mapping.findForward("reload"); // reload to avoid re-post of form when admin changes group
}