servlet = request.getWrapper();
if (servlet != null)
{
String name = servlet.getName();
RunAsIdentityMetaData identity = metaData.getRunAsIdentity(name);
RunAsIdentity runAsIdentity = null;
if(identity != null)
{
if (trace)
log.trace(name + ", runAs: " + identity);
runAsIdentity = new RunAsIdentity(identity.getRoleName(),
identity.getPrincipalName(), identity.getRunAsRoles());
}
SecurityAssociationActions.pushRunAsIdentity(runAsIdentity);
}
userPrincipal.set(caller);