Object param = selectParam(key, paramNames, paramValues);
Object result = evaluator.get(param, key);
if (result != null) {
Class<?> type = result.getClass();
if (converters.existsTwoWayFor(type)) {
TwoWayConverter converter = converters.twoWayConverterFor(type);
result = converter.convert(result);
}
}
String parameter = encodeParameter(result == null ? "" : result.toString());
base = base.replace("{" + splittedPatterns[i] + "}", result == null ? "" : parameter);