private synchronized void lastResult(Object oneResult, ResultCollector collector,
      boolean lastRemoteResult, boolean lastLocalResult, DistributedMember memberID) {

    if (lastRemoteResult) {
      completelyDoneFromRemote = true;
    }
    if (lastLocalResult) {
      localLastResultReceived = true;

    }
    if (serverSender != null) { // Client-Server
      if (completelyDoneFromRemote && localLastResultReceived) {
        serverSender.lastResult(oneResult, memberID);
        collector.endResults();
      } else {
        serverSender.sendResult(oneResult, memberID);
      }
    } else { // P2P
      if (completelyDoneFromRemote && localLastResultReceived) {
        collector.addResult(memberID, oneResult);
        collector.endResults();
      } else {
        collector.addResult(memberID, oneResult);
      }
    }
  }
Have to combine next two construcotr in one and make a new class which will send Results back.
geode-core/src/main/java/org/apache/geode/internal/cache/execute/MemberFunctionResultSender.java