RDFWriter writer = Rio.createWriter(serializer, output);
try {
RepositoryConnection con = versioningService.getSnapshot(date);
URI subject = con.getValueFactory().createURI(resource.stringValue());
try {
con.exportStatements(subject,null,null,true,writer);
} catch (RepositoryException e) {
throw new WebApplicationException(e, Response.Status.INTERNAL_SERVER_ERROR);
} catch (RDFHandlerException e) {
throw new IOException("error while writing RDF data to stream");
} finally {