catch (IOException ex) {
Logger.getLogger(HttpCgiModule.class.getName()).log(Level.SEVERE, null, ex);
}
}
httpContext.getResponse().setStatusCode(new HttpStatusCode(HttpStatusCodeClass.SUCCESS, 200, ""));
httpContext.getResponse().setConnectionType(ConnectionType.CLOSE);
HttpHeadersParser httpHeadersParser = new HttpHeadersParser();
IHttpHeaders responseHeaders = httpHeadersParser.parse(cgiProcess.getInputStream());
for (IHttpHeader responseHeader : responseHeaders) {