File dir = contents.getParentFile(); if(dir.isDirectory() && dir.getName().equals("db")) { File sys = new File(dir.getAbsolutePath() + File.separatorChar + "system" + File.separatorChar + "__contents__.xml");  if(sys.canRead()) { System.out.println("found /db/system. It will be processed first."); stack.push(sys); } }
	public Restore(String user, String pass, File contents, String uri)		throws ParserConfigurationException, SAXException {		this.username = user;		this.pass = pass;		this.uri = uri;		SAXParserFactory saxFactory = SAXParserFactory.newInstance();		saxFactory.setNamespaceAware(true);		saxFactory.setValidating(false);		SAXParser sax = saxFactory.newSAXParser();		reader = sax.getXMLReader();		reader.setContentHandler(this);		stack.push(contents);	}