assertNotNull("portal servlet context is null", servletContext);
assertNotNull("portlet registry is null", portletRegistry);
assertNotNull("request context component is null", rcc);
final RequestContext requestContext = initRequestContext();
final Subject subject = JetspeedSubjectFactory.createSubject(new UserImpl("user"), null, null, null);
requestContext.getRequest().getSession().setAttribute(PortalReservedParameters.SESSION_KEY_SUBJECT, subject);
requestContext.setSubject(subject);
ProfileLocator locator = profiler.createLocator(requestContext);
HashMap locators = new HashMap();