public T with(final Configuration conf) {
        // detect the type of configuration then read the configuration from the right constructor
        if (conf.containsKey(Graph.GRAPH))
            return with(GraphFactory.open(conf));
        else
            return with(RemoteConnection.from(conf));
    }
Creates a {@link TraversalSource} from a configuration object which may either be for a {@link Graph} instance or
for a {@link RemoteConnection}.

@param conf a {@code Configuration} object that would normally be provided to configure a {@link RemoteConnection}
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/AnonymousTraversalSource.java