public void writeRestServiceNotFoundMessage(HttpServletRequest request,
String uri) {
String mimeType = RequestHelper.getMimeType(request);
String msg = "没有提供指定的Rest服务 (" + uri + ") !";
if (MimeType.MIME_OF_TEXT_HTML.equals(mimeType)) {
throw new ServiceNotFoundException(msg);
} else
this.writeErrorMessage(new Exception(msg));
}