if (commandEntryParameter == null || !(commandEntryParameter instanceof CommandEntry)){
throw new BugException("no command entry returned by the interaction enter action");
}
CommandEntry commandEntry = (CommandEntry)commandEntryParameter;
CommandEntryExtender commandEntryExtender = commandEntryManager.createCommandEntryExtender(commandEntry);
commandEntryExtender.reloadReferences(); // reload outdated references
// check access rights
if (!req.isUserInRole(UserManagerBase.ADMINISTRATOR) && commandEntry.getGroup() != webUser.getGroup()) {
throw new InputException(getResources(req).getMessage(locale, "smssvc.insufficientRights"));
}
commandEntryManager.createOrModify(commandEntry);