OpenSearchUrlInfo urlInfo = this.getMatchingUrlInfo(requestContext);
if (urlInfo != null) {
OpenSearchUrlAdapter adapter = urlInfo.getOpenSearchUrlAdapter();
if (adapter != null) {
Map<String, String> params = this.getUrlParametersFromRequest(requestContext, urlInfo);
return adapter.search(requestContext, params);
} else {
return ProviderHelper.notfound(requestContext);
}
} else {
return ProviderHelper.notfound(requestContext);