title: Creating a guice injector with two different modules having similar dependencies
body: <p>Suppose I have two modules <code>ModuleA</code> and <code>ModuleB</code> which are self-sufficient and can be used as stand-alone modules. Both the modules have a dependency on a third module <code>ModuleC</code> like </p>
  
  <pre><code>install(new ModuleC());
  </code></pre>
  
  <p>Now, I have a use case where I need to create an injector with both modules, A and B. I did this:</p>
  
  <pre><code>Guice.createInjector(new ModuleA(), new ModuleB());
  </code></pre>
  
  <p>It threw a <code>CreationException</code> as expected which said that a binding to a certain class was already configured at one of the modules. Keeping in mind that I do not have the power to alter <code>ModuleA</code> and <code>ModuleB</code>, how do I make it work?</p>
  
  <p>I tried using <code>Modules.combine(Modules... modules)</code> but that did not solve my problem. Is there any solution out there for this?</p>