throws Exception {
final WebApplicationService service = this.samlArgumentExtractor.extractService(request);
final String artifactId = service != null ? service.getArtifactId() : null;
final String serviceId = service != null ? service.getId() : "UNKNOWN";
final String errorMessage = (String) model.get("description");
final SAMLResponse samlResponse = new SAMLResponse(artifactId, serviceId, new ArrayList<Object>(), new SAMLException(errorMessage));
samlResponse.setIssueInstant(new Date());
response.setContentType("text/xml; charset=" + this.encoding);
response.getWriter().print("<?xml version=\"1.0\" encoding=\"" + this.encoding + "\"?>");
response.getWriter().print("<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\"><SOAP-ENV:Header/><SOAP-ENV:Body>");