default <C extends TraversalSource> C traversal(final Class<C> traversalSourceClass) {
        try {
            return traversalSourceClass.getConstructor(Graph.class).newInstance(this);
        } catch (final Exception e) {
            throw new IllegalStateException(e.getMessage(), e);
        }
    }
Generate a {@link TraversalSource} using the specified {@code TraversalSource} class.
The reusable {@link TraversalSource} provides methods for spawning {@link Traversal} instances.

@param traversalSourceClass The traversal source class
@param <C>                  The traversal source class
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/Graph.java