public AWComponent createPageWithName (String componentName,
AWRequestContext requestContext)
{
AWComponentDefinition componentDefinition = componentDefinitionForName(componentName);
if (componentDefinition == null) {
throw new AWGenericException("Unable to locate page with name \"" + componentName + "\"");
}
AWComponentReference sharedComponentReference = componentDefinition.sharedComponentReference();
AWComponent newComponent = componentDefinition.createComponent(sharedComponentReference, null, requestContext);
AWPage page = newComponent.page();
newComponent.ensureAwake(page);