private void printMessage(final HttpServletResponse response, final int sc, final String msg)
		throws IOException, ServletException {
    """
	Produces a simple HTTP text/plain response with the specified status
	code and message.
	
	<p>Note: The CORS filter avoids falling back to the default web
	container error page (typically a richly-formatted HTML page) to make
	it easier for XHR debugger tools to identify the cause of failed
	requests.
	
	@param sc      The HTTP status code.
	@param message The message.
	
	@throws IOException      On a I/O exception.
	@throws ServletException On a general request processing exception.
    """
	
		// Set the status code
		response.setStatus(sc);
		
		
		// Write the error message
		
		response.resetBuffer();
		
		response.setContentType("text/plain");
		
		PrintWriter out = response.getWriter();
		
		out.println("Cross-Origin Resource Sharing (CORS) Filter: " + msg);
	}
private void printMessage(final HttpServletResponse response, final int sc, final String msg)
		throws IOException, ServletException {
	
		// Set the status code
		response.setStatus(sc);
		
		
		// Write the error message
		
		response.resetBuffer();
		
		response.setContentType("text/plain");
		
		PrintWriter out = response.getWriter();
		
		out.println("Cross-Origin Resource Sharing (CORS) Filter: " + msg);
	}
private void printMessage ( final HttpServletResponse response , final int sc , final String msg ) throws IOException , ServletException { // Set the status code response . setStatus ( sc ) ; // Write the error message response . resetBuffer ( ) ; response . setContentType ( "text/plain" ) ; PrintWriter out = response . getWriter ( ) ; out . println ( "Cross-Origin Resource Sharing (CORS) Filter: " + msg ) ; }
Produces a simple HTTP text/plain response with the specified status
code and message.

<p>Note: The CORS filter avoids falling back to the default web
container error page (typically a richly-formatted HTML page) to make
it easier for XHR debugger tools to identify the cause of failed
requests.

@param sc      The HTTP status code.
@param message The message.

@throws IOException      On a I/O exception.
@throws ServletException On a general request processing exception.
Produces a simple HTTP text / plain response with the specified status code and message .