final StreamingOutput entity = new StreamingOutput() {
@Override
public void write(OutputStream outputStream) throws IOException,
WebApplicationException {
try {
final RDFWriter writer = Rio.createWriter(format, outputStream);
sparqlService.createServiceDescription(writer, request.getRequestURL().toString(), isUpdate);
} catch (RDFHandlerException e) {
log.warn("Could not send SpaqlServiceDescription: {}", e);
throw new NoLogWebApplicationException(e, Response.serverError().entity(e).build());
}