public void configure(RuntimeHarness harness, File workingDir) throws IOException {
    SessionFactory.setDefaultRepository("test");
    File dest = new File(workingDir, "web/root.war/WEB-INF/");
    dest.mkdirs();

    if (config == null) {
      throw new java.lang.IllegalStateException(
          "No custom web.xml was found. " + "Check your @WebXml annotation on the test class");
    }
    InputStream in = config.openStream();
    dest = new File(workingDir + "/web/root.war/WEB-INF/", "web.xml");
    try {
      FileUtils.copyToFile(in, dest);
    } finally {
      in.close();
    }
  }
 public CoreSession getCoreSession() {
   return SessionFactory.getSession(request);
 }