public void exampleUse() throws Exception{
//TODO refactor dir.delete into method
//[gb:useInDocumentation]
RootDoc rootDoc = createDefaultRootDoc();
File dir = File.createTempFile("ExampleCreatingRootDocHandler", "dir");
dir.delete();//delete the file because it is not a directory. it will be created later
ExampleCreatingRootDocHandler handler = new ExampleCreatingRootDocHandler(
dir, new ArrayList<File>());
handler.evaluate(rootDoc);