anchor.diff:  
   [source,java,linenum]
   ----
  -java.net.URL documentUrl = new URL(“http://example.org/example.ttl”);
  +java.net.URL documentUrl = new URL("http://example.org/example.ttl");
   InputStream inputStream = documentUrl.openStream();
   ----
   
  
positive.code: catch (Exception e) {
    // oh no!
  }
  int numberOfStatements = myCounter.getCountedStatements();
  ----
  
  
negative.code: catch (RDFHandlerException e) {
   // oh no, do something!
  }
  finally {
    out.close();
  }
  ----
  
  Again, the Rio helper class provides convenience methods which you can use to make this a one step process. If the collection is a `Model` and the desired output format supports namespaces, then the namespaces from the model will also be serialised.
  