static {
    List<VirtualFile> templates = Play.templatesPath;

    for (VirtualFile virtualFile : templates) {

      doDiscoverReport(virtualFile);
    }
  }
 private static void doDiscoverReport(VirtualFile virtualFile) {
   if (!virtualFile.isDirectory()) {
     try {
       XDocReportRegistry.getRegistry()
           .loadReport(virtualFile.inputstream(), virtualFile.getName());
     } catch (IOException e) {
       // TODO Auto-generated catch block
       e.printStackTrace();
     } catch (XDocReportException e) {
       // TODO Auto-generated catch block
       e.printStackTrace();
     }
   } else {
     List<VirtualFile> children = virtualFile.list();
     for (VirtualFile virtualFile2 : children) {
       System.out.println(virtualFile2.getRealFile());
       doDiscoverReport(virtualFile2);
     }
   }
 }