}
@Override
public void write(Writer writer) throws IOException {
try {
final SparqlWriter answerWriter = createAnswerWriter(writer);
// Don't close the writer - this will be done by calling code.
answerWriter.writeFullDocument();
} catch (Exception e) {
throw new IOException(e.getMessage());
}
}