@Override
  public void execute(FunctionContext context) {
    Map<String, String> myMap = new HashMap();
    myMap.put("k11", "v1");
    myMap.put("k12", "v2");
    myMap.put("k13", "v3");
    myMap.put("k14", "v4");
    myMap.put("k15", "v5");

    // return map as a function result
    context.getResultSender().lastResult(myMap);
  }
The GetAllEntries is function that will return a map as a result of its execution.
<p>

@since GemFire 8.0
geode-assembly/geode-assembly-test/src/main/java/org/apache/geode/rest/internal/web/controllers/GetAllEntries.java