externalContext.getRequestParameterValuesMap() == null || externalContext.getRequest() == null)
{
return result;
}
NavigationParameterContext navigationParameterContext =
BeanProvider.getContextualReference(NavigationParameterContext.class);
for (Map.Entry<String, String> entry : navigationParameterContext.getPageParameters().entrySet())
{
//TODO add multi-value support
result.add(new RequestParameter(entry.getKey(), new String[]{entry.getValue()}));
}