XConfiguration conf = new XConfiguration();
conf.set("hoop.hadoop.conf:fs.default.name", fsDefaultName);
conf.set("hoop.base.url", getJettyURL().toExternalForm());
File hoopSite = new File(new File(homeDir, "conf"), "hoop-site.xml");
OutputStream os = new FileOutputStream(hoopSite);
conf.writeXml(os);
os.close();
File dir = new File("foo").getAbsoluteFile().getParentFile();
if (!new File(dir, "hoop-webapp").exists()) {
dir = dir.getParentFile();