public Map<String, ProfileLocator> getProfileLocators(RequestContext context, Principal principal) throws ProfilerException { // setup/maintain profiler context for session end notification setupProfilerContext(context); // get profile locators Map<String, ProfileLocator> locators = new HashMap<String, ProfileLocator>(); Collection<PrincipalRule> rules = getRulesForPrincipal(principal); for (PrincipalRule pr : rules) { locators.put(pr.getLocatorName(), getProfile(context, pr.getLocatorName())); } return locators; }