configFile = new File(persvrHome + sep + "etc" + sep + "jetty.xml");
if (!configFile.exists())
throw new RuntimeException("Couldn't find a valid jetty.xml config in your instance, or in the Persevere installation.");
}
XmlConfiguration xmlconfig = new XmlConfiguration(new FileInputStream(configFile));
Map props = xmlconfig.getProperties();
props.put("port", port);
xmlconfig.configure(server);
WebAppContext webapp = new WebAppContext();
webapp.setResourceBase(instancePath);
Resource resource = InheritingFileResource.newResource(instancePath, persvrHome);