long s = (new Date()).getTime();
remoteHost = ActionContext.getActionContext().getRequest().getRemoteHost();
CorpGovPrincipal cp = (CorpGovPrincipal)ActionContext.getActionContext().getRequest().getUserPrincipal();
if (cp!=null) {
userName = cp.getName();
userRole = cp.getRole();
} else {
if (ConfigurationService.getConfig().getConsoleAuthenticate()) {
logger.warn("search denied. attempted search by unknown user. ");
long e = (new Date()).getTime();
searchTime = e - s ;