if (checksumStrategy.checksumValid(decoded))
{
decoded = checksumStrategy.removeChecksum(decoded);
query.removeParameter(tokenName);
QueryStringBuilder queryParams = QueryStringBuilder.createFromEncoded(decoded);
RewriteWrappedRequest request = RewriteWrappedRequest.getCurrentInstance(in.getRequest());
for (Entry<String, List<String>> param : queryParams.getParameterMap().entrySet()) {
for (String value : param.getValue()) {
Maps.addArrayValue(request.getModifiableParameters(), param.getKey(), value);
}
}
}
else if (onfailure != null)
{