public Builder withResult(final Consumer<Object> withResult) {
                this.withResult = withResult;
                return this;
            }
Specifies the function to execute on the result of the script evaluation just after script evaluation
returns but before the script evaluation is marked as complete.
gremlin-groovy/src/main/java/org/apache/tinkerpop/gremlin/groovy/engine/GremlinExecutor.java