}
public void dispatchRequest(final RestRequest request, final RestChannel channel) {
try {
if (request instanceof NettyHttpRequest) {
NettyHttpRequest nettyHttpRequest = (NettyHttpRequest)request;
if ("PATCH".equalsIgnoreCase(nettyHttpRequest.getMethod())) {
RestHandler handler = patchHandlers.retrieve(request.rawPath());
if (handler != null) {
handler.handleRequest(request, channel);
}
}