public final class ActionCommand implements Command {
private final Command impl;
public ActionCommand(final String name, final Action action) {
impl = new NoArgumentCommand(name, new CommandExecutor() {
@Override
public void execute(String[] params) throws CommandException {
if (action.isEnabled()) {
ActionUtils.run(action, this, name);