if (stylesheet == null) {
super.setHeader(HeaderName.CONTENT_TYPE, "application/rdf+xml");
} else {
super.setHeader(HeaderName.CONTENT_TYPE, "application/xml");
}
super.setBody(new MessageBody2Write() {
//<?xml-stylesheet type="text/xsl" href="/stylesheets/topic"?>
public void writeTo(WritableByteChannel out) throws IOException {
Model model = JenaUtil.getModelFromGraph(graph);
//TODO deliver other formats
OutputStream outS = Channels.newOutputStream(out);