public AWResponseGenerating redirectForPage (AWComponent pageComponent)
{
AWComponent page = pageComponent;
checkSelectedModule(pageComponent);
UIMeta meta = UIMeta.getInstance();
Context context = meta.newContext();
context.push();
context.set(UIMeta.KeyModule, _selectedModule.name());
String pageName = (String)context.propertyForKey(UIMeta.KeyHomePage);
if (pageName != null && !pageName.equals(pageComponent.componentDefinition().componentName())) {
page = pageComponent.requestContext().pageWithName(pageName);
meta.preparePage(context, page);
}
context.pop();
return page;
}