spring-hateoas-ext/src/main/java/de/escalon/hypermedia/affordance/PartialUriTemplate.java
public PartialUriTemplateComponents expand(Object... parameters) {
        List<String> variableNames = getVariableNames();
        Map<String, Object> parameterMap = new LinkedHashMap<String, Object>();

        int i = 0;
        for (String variableName : variableNames) {
            if (i < parameters.length) {
                parameterMap.put(variableName, parameters[i++]);
            } else {
                break;
            }
        }
        return getUriTemplateComponents(parameterMap, Collections.<String>emptyList());
    }
public PartialUriTemplateComponents expand(Object... parameters) {
        List<String> variableNames = getVariableNames();
        Map<String, Object> parameterMap = new LinkedHashMap<String, Object>();

        int i = 0;
        for (String variableName : variableNames) {
            if (i < parameters.length) {
                parameterMap.put(variableName, parameters[i++]);
            } else {
                break;
            }
        }
        return getUriTemplateComponents(parameterMap, Collections.<String>emptyList());
    }
Expands the template using given parameters

@param parameters
for expansion in the order of appearance in the template, must not be empty
@return expanded template