for (String pathParamName : JaxrsResourceMethodParameters.getPathParameterNames(path)) {
Statement pathParam = marshal(params.getPathParameter(pathParamName));
if (params.needsEncoding(pathParamName)) {
pathParam = encodePath(pathParam);
}
pathValue = pathValue.invoke("replace", "{" + pathParamName + "}", pathParam);
}
if (params.getMatrixParameters() != null) {
for (String matrixParamName : params.getMatrixParameters().keySet()) {
pathValue = pathValue.invoke("concat", ";" + matrixParamName + "=")