}
static List addMatchedParameters(final Step step, final ParameterRef paramRef) {
final List expandedParam = new ArrayList();
final Pattern pattern = Pattern.compile(paramRef.getRegex());
for (MapIterator iterator = new EntrySetMapIterator(step.getWebtestProperties(paramRef.getPropertyType()));
iterator.hasNext();) {
final Matcher matcher = pattern.matcher((String) iterator.next());
if (matcher.matches()) {
expandedParam.add(new Parameter(replaceGroups(paramRef.getName(), matcher), (String) iterator.getValue()));
}
}
return expandedParam;
}