}
// Generate a new token value and cache it for reuse if the
// current view is rerendered
FacesContext context = FacesContext.getCurrentInstance();
TokenProcessor tp = getTokenProcessor(context);
String token = tp.generate(context);
getAttributes().put(TOKEN_ATTRIBUTE_KEY, token);
if (log.isDebugEnabled()) {
log.debug("Generating token '" + token + "'");
}
return token;