/** * Stores the mapping definition * @throws ResourceInstantiationException if store fails. */ public void store()throws ResourceInstantiationException{ if (null == url) { throw new ResourceInstantiationException("URL not set (null)."); } try { File fileo = Files.fileFromURL(url); fileo.delete(); BufferedWriter mapWriter = new BufferedWriter(new FileWriter(fileo)); for (int index = 0 ; index < nodes.size() ; index++) { mapWriter.write(nodes.get(index).toString()); mapWriter.newLine(); } mapWriter.close(); } catch (IOException ioe) { throw new ResourceInstantiationException(ioe); } } //store();