@Override
  public final void execute(FunctionContext<T> context) {
    try {
      context.getResultSender().lastResult(executeFunction(context));
    } catch (EntityNotFoundException nfe) {
      context.getResultSender().lastResult(new CliFunctionResult(context.getMemberName(), nfe));
    } catch (Throwable e) {
      logger.error(e.getMessage(), e);
      context.getResultSender().lastResult(new CliFunctionResult(context.getMemberName(), e));
    }
  }
An abstract function implementation to be extended by cli functions. Any cli function extending
this class has to return a CliFunctionResult.
geode-gfsh/src/main/java/org/apache/geode/management/cli/CliFunction.java