// store session attributes in token parameters to pass them through
// to the stores
for(Enumeration e = session.getAttributeNames(); e.hasMoreElements();) {
String name = (String)e.nextElement();
token.addParameter(name, session.getAttribute(name));
}
return token;
}