@Override
    protected void configure() {

        // Create the required DirectoryResourceFactory implementation
        install(new FactoryModuleBuilder()
                .implement(
                    new TypeLiteral<DirectoryResource<ActiveConnection, APIActiveConnection>>() {},
                    ActiveConnectionDirectoryResource.class
                )
                .build(new TypeLiteral<DirectoryResourceFactory<ActiveConnection, APIActiveConnection>>() {}));

        // Create the required DirectoryObjectResourceFactory implementation
        install(new FactoryModuleBuilder()
                .implement(
                    new TypeLiteral<DirectoryObjectResource<ActiveConnection, APIActiveConnection>>() {},
                    ActiveConnectionResource.class
                )
                .build(new TypeLiteral<DirectoryObjectResourceFactory<ActiveConnection, APIActiveConnection>>() {}));

        // Bind translator for converting between ActiveConnection and APIActiveConnection
        bind(new TypeLiteral<DirectoryObjectTranslator<ActiveConnection, APIActiveConnection>>() {})
                .to(ActiveConnectionObjectTranslator.class);

    }
Guice Module which configures injections required for handling
ActiveConnection resources via the REST API.
guacamole/src/main/java/org/apache/guacamole/rest/activeconnection/ActiveConnectionModule.java