List<PathParameter> pathParams = m.getPatternParser().getPathParameters();
int pathParamsFound = 0;
for (PathParameter p : pathParams)
{
UIParameter uip = new UIParameter();
String[] values = queryParams.get(p.getName());
if ((values != null) && (values.length > 0))
{
String value = values[0];
uip.setValue(value);
if ((value != null) && !"".equals(value))
{
pathParamsFound++;
}
}
queryParams.remove(p.getName());
uiParams.add(uip);
}
for (Entry<String, String[]> entry : queryParams.entrySet())
{
UIParameter uip = new UIParameter();
uip.setName(entry.getKey());
uip.setValue(entry.getValue());
uiParams.add(uip);
}
if (pathParams.size() == pathParamsFound)
{