MarinerPageContext pageContext =
ContextInternals.getMarinerPageContext(requestContext);
// Create the base URL tracker and store it in the page context.
BaseURLTracker baseURLTracker =
new BaseURLTracker(pageContext.getRequestURL(false));
pageContext.setBaseURLProvider(baseURLTracker);
// Create the project tracker.
ProjectManager projectManager = pageContext.getProjectManager();
ProjectStack projectStack = pageContext.getProjectStack();