public <T> T getInstance(final Class<T> clazz) {
        return injector.getInstance(clazz);
    }
Base class for implementing a custom {@code ObjectFactory} for cucumber tests and is based on the basic
{@code GuiceFactory} implementation which can't be extended. That implementation works well when there is only
single {@link World} implementation to test or if the requirements are such that system properties or environment
variables can otherwise suffice in controlling the test environment to the provider's satisfaction. In other cases,
it may simply be easier to create a custom {@code ObjectFactory} from this class, register it in
{@code META-INF/services/io.cucumber.core.backend.ObjectFactory} and then reference it directly in the
{@code CucumberOptions} annotation for the test class.
gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/features/AbstractGuiceFactory.java