@Override
    public <A> A head() {
        return (A) this.objects.get(this.objects.size() - 1);
    }
@author Marko A. Rodriguez (http://markorodriguez.com)
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/util/MutablePath.java