// if none selected, make empty list
if (model.getSelectedIds() == null) model.setSelectedIds(new ArrayList<Object>());
// get the current command if any
ScreenCommand command = model.getCommand(action);
if (action == null || action.isEmpty())
{
logger.debug("action or command does not exist");
return Show.SHOW_MAIN;
}
// delegate to a command
else if (command != null && command instanceof SimpleCommand)
{
logger.debug("delegating to PluginCommand");
model.setCurrentCommand(command);
return command.handleRequest(db, request, out);
}
else if (action.equals("filter_add"))
{
this.addFilters(pager, db, request);
}