ServiceManager.lookup("javax.jnlp.PersistenceService");
BasicService basicService = (BasicService)
ServiceManager.lookup("javax.jnlp.BasicService");
FileContents contents = null;
try {
url = new URL(basicService.getCodeBase(), "configuration.xml");
contents = persistenceService.get(url);
} catch (MalformedURLException e1) {
e1.printStackTrace();
} catch (FileNotFoundException e1) {
try {
persistenceService.create(url,10000);
contents = persistenceService.get(url);
} catch (MalformedURLException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
} catch (IOException e1) {
e1.printStackTrace();
}
try {
properties.load(contents.getInputStream());
} catch (MalformedURLException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}