Preferences prefs = Preferences.userNodeForPackage(SessionStore.class);
    protected Properties loadConfiguration(ServletConfig config )        throws IOException, FileNotFoundException {        log.finer("loadConfiguration(ServletConfig)");        Properties p = new Properties();        Preferences prefs = Preferences.userNodeForPackage(SessionStore.class);        String path = prefs.get("TemplateDir", null);        try {            SessionStore.getInstance();        }                catch (SessionException e) {            log.severe("Unable to get SessionStore instance.");        }        /* If path is null, log it. */ // Should also abort?        if (path == null) {            log.severe("Path to Velocity templates not set. (Preferences, Moria.xml)");            path = "/";        }                          p.setProperty( Velocity.FILE_RESOURCE_LOADER_PATH,  path );        // p.setProperty( "runtime.log", path + "velocity.log" );        return p;    }