// Set up the rebind oracle for the module.
// It has to wait until now because we need to inject javascript.
//
Rules rules = module.getRules();
StandardGeneratorContext genCtx = new StandardGeneratorContext(
compilationState, module, genDir, shellDir, new ArtifactSet());
rebindOracle = new StandardRebindOracle(propOracle, rules, genCtx);
// Create a completely isolated class loader which owns all classes
// associated with a particular module. This effectively builds a
// separate 'domain' for each running module, so that they all behave as