@Override
    protected void configure() {

        // Create the required DirectoryResourceFactory implementation
        install(new FactoryModuleBuilder()
                .implement(
                    new TypeLiteral<DirectoryResource<SharingProfile, APISharingProfile>>() {},
                    SharingProfileDirectoryResource.class
                )
                .build(new TypeLiteral<DirectoryResourceFactory<SharingProfile, APISharingProfile>>() {}));

        // Create the required DirectoryObjectResourceFactory implementation
        install(new FactoryModuleBuilder()
                .implement(
                    new TypeLiteral<DirectoryObjectResource<SharingProfile, APISharingProfile>>() {},
                    SharingProfileResource.class
                )
                .build(new TypeLiteral<DirectoryObjectResourceFactory<SharingProfile, APISharingProfile>>() {}));

        // Bind translator for converting between SharingProfile and APISharingProfile
        bind(new TypeLiteral<DirectoryObjectTranslator<SharingProfile, APISharingProfile>>() {})
                .to(SharingProfileObjectTranslator.class);

    }
Guice Module which configures injections required for handling SharingProfile
resources via the REST API.
guacamole/src/main/java/org/apache/guacamole/rest/sharingprofile/SharingProfileModule.java