private final Object getObject(final C object, final int index) {
        if (object instanceof ProjectedTraverser)
            return ((ProjectedTraverser) object).getProjections().get(index);
        else
            return object;
    }
@author Marko A. Rodriguez (http://markorodriguez.com)
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/util/function/MultiComparator.java