Auto-save model
change getResource().getFile to getResource().toURI() to work in windows