code: @SuppressWarnings("deprecation")
      private void bindEnvironment() {
          bind(Bootstrap.class).toInstance(bootstrap());
          bind(Environment.class).toInstance(environment());
          install(new ConfigBindingModule(configuration(), configurationTree(),
                  context.option(BindConfigurationInterfaces)));
      }
docs: Bind bootstrap, configuration and environment objects to be able to use them
  as injectable.