@Override
    protected void configure() {

        // Create the required DirectoryResourceFactory implementation
        install(new FactoryModuleBuilder()
                .implement(
                    new TypeLiteral<DirectoryResource<ConnectionGroup, APIConnectionGroup>>() {},
                    ConnectionGroupDirectoryResource.class
                )
                .build(new TypeLiteral<DirectoryResourceFactory<ConnectionGroup, APIConnectionGroup>>() {}));

        // Create the required DirectoryObjectResourceFactory implementation
        install(new FactoryModuleBuilder()
                .implement(
                    new TypeLiteral<DirectoryObjectResource<ConnectionGroup, APIConnectionGroup>>() {},
                    ConnectionGroupResource.class
                )
                .build(new TypeLiteral<DirectoryObjectResourceFactory<ConnectionGroup, APIConnectionGroup>>() {}));

        // Bind translator for converting between ConnectionGroup and APIConnectionGroup
        bind(new TypeLiteral<DirectoryObjectTranslator<ConnectionGroup, APIConnectionGroup>>() {})
                .to(ConnectionGroupObjectTranslator.class);

    }
Guice Module which configures injections required for handling
ConnectionGroup resources via the REST API.
guacamole/src/main/java/org/apache/guacamole/rest/connectiongroup/ConnectionGroupModule.java