Logged In: NO

My solution was a bit more complicated:

public File getMessageStore() {
String s = DEFAULT_STORE;
ConfigNode store = this.rootNode.findByName("messages");
File f = new File(".");
File ret = null;
if(store == null) {
ret = new File(f.getAbsolutePath() +
System.getProperty("file.separator") +
s);
} else {
String path = store.getContent();
if (path.startsWith("/") == false) {
path = f.getAbsolutePath() + System.getProperty("file.separator") + path;
}
ret = new File(path);
}
return ret;
}

public File getDurablesStore() {
String s = DEFAULT_DUR_STORE;
ConfigNode store = this.rootNode.findByName("durables");
File f = new File(".");
File ret = null;
if(store == null) {
ret = new File(f.getAbsolutePath() +
System.getProperty("file.separator") +
s);
} else {
String path = store.getContent();
if (path.startsWith("/") == false) {
path = f.getAbsolutePath() + System.getProperty("file.separator") + path;
}
ret = new File(path);
}
return ret;
}