if (module == null) {
context.setAttribute("juzu.module", module = new ModuleContextImpl(portletLogger, bridgeContext, resolver));
}
//
Bridge bridge;
if (injector.isProvided()) {
bridge = new ProvidedBridge(bridgeContext, bridgeConfig, server, resolver, injector);
} else {
bridge = new ApplicationBridge(module, bridgeContext, bridgeConfig, server, resolver, injector);
}