private long DoneBatches(StageExecution execution)
        {
//JAVA TO C# CONVERTER WARNING: Java wildcard generics have no direct equivalent in .NET:
//ORIGINAL LINE: Step<?> step = org.neo4j.helpers.collection.Iterables.last(execution.steps());
            Step <object> step = Iterables.last(execution.Steps());

            return(step.Stats().stat(Keys.done_batches).asLong());
        }