public OverrideRuntimeModuleSetup(Module[] modules) {
this.modules = copyOf(modules, modules.length);
}
@Override public Injector createInjector() {
Module current = new ProtobufRuntimeModule();
for (Module module : modules) {
current = Modules.override(current).with(module);
}
return Guice.createInjector(current);
}