public MultivaluedMap<String, String> getPathParameters(boolean decode) {
logger.debug("getPathParameters({}) called", decode); //$NON-NLS-1$
if (pathParameters == null) {
pathParameters = new MultivaluedMapImpl<String, String>();
SearchResult searchResult = messageContext.getAttribute(SearchResult.class);
if (searchResult == null) {
throw new IllegalStateException(Messages
.getMessage("methodCallOutsideScopeOfRequestContext")); //$NON-NLS-1$
}
MultivaluedMapImpl.copy(searchResult.getData().getMatchedVariables(), pathParameters);
logger.debug("getPathParameters({}) encoded path parameters are: {}", //$NON-NLS-1$
decode,
pathParameters);
}