private SearchHandler getSearchHandler() {
        for (RequestHandler h : container.getRequestHandlerRegistry().allComponents()) {
            if (h instanceof SearchHandler) {
                return (SearchHandler) h;
            }
        }
        return null;
    }
Returns a {@link Search}, used to perform search query operations on this container.

@return a Search instance
@throws UnsupportedOperationException if this JDisc does not have search configured
application/src/main/java/com/yahoo/application/container/JDisc.java