/**
* Builds a special outcome processed by {@link RewriteNavigationHandler}
*/
private String buildRedirectOutcome()
{
AddressBuilderPath builderPath = AddressBuilder.begin().path(viewId);
for (Entry<String, List<String>> param : parameters.entrySet()) {
String[] values = param.getValue().toArray(new String[param.getValue().size()]);
builderPath.query(param.getKey(), (Object[]) values);
}
String url = builderPath.toString();
return RewriteNavigationHandler.REDIRECT_PREFIX + url;
}