requestStatus = JaxbRequestStatus.FAILURE;
}
// Build and send response
Exception responseException = addException ? e : null;
JaxbRestRequestException response = new JaxbRestRequestException(uriInfo.getRequestUri().toString(), responseException, requestStatus);
try {
responseBuilder.entity(response.prettyPrint());
} catch (JAXBException jaxbe) {
responseBuilder.entity(JaxbRestRequestException.convertStackTraceToString(jaxbe));
}
Variant variant = getVariant(headers);