now instead of putting the xml default inside resource package, I just use xml literals (the object is just for encapsulation). Also, I don't read from inside program anymore. If the file doesn't exist, I just write the default literal to it. I use java.nio.file package to handle the IO tasks, so please be prepared to update to at least java 7.