Response response = (Response) SecurityAssociationValve.activeResponse.get();
response.addCookie(cookie);
// Register this principal with our SSO valve
sso.register(ssoId, principal, AUTH_TYPE, username, this.getPasswordAsString(password));
request.setNote(Constants.REQ_SSOID_NOTE, ssoId);
}
else
{