protected void setUpThirdApp() {
ModuleConfigFactory factoryObject = ModuleConfigFactory.createFactory();
moduleConfig3 = factoryObject.createModuleConfig("/3");
context.setAttribute(Globals.MODULE_KEY + "/3", moduleConfig3);
ControllerConfig controller = new ControllerConfig();
moduleConfig3.setControllerConfig(controller);
controller.setForwardPattern("/forwarding$M$P");
controller.setInputForward(true);
controller.setPagePattern("/paging$M$P");
moduleConfig3.addForwardConfig(new ForwardConfig("moduleForward",
"/module/forward", false));
moduleConfig3.addForwardConfig(new ForwardConfig("moduleRedirect",
"/module/redirect", true));
moduleConfig3.addForwardConfig(new ForwardConfig("contextForward",
"/forward", false,
"/context"));
moduleConfig3.addForwardConfig(new ForwardConfig("contextRedirect",
"/redirect", true,
"/context"));
moduleConfig3.addForwardConfig(new ForwardConfig("moduleNoslash",
"module/noslash", false));
moduleConfig3.addForwardConfig(new ForwardConfig("contextNoslash",
"noslash", false,
"/context"));
}