String path = prefs.get("TemplateDir", null);  System.out.println("path: "+path);
String path = localPrefs.get("TemplateDir", null);
    protected Properties loadConfiguration(ServletConfig config )        throws IOException, FileNotFoundException {                try {            Preferences.importPreferences(getClass().getResourceAsStream("/Moria.xml"));        }        catch (FileNotFoundException e) {            log.severe("FileNotFoundException caught.");        }                 catch (IOException e) {            log.severe("IOException caught.");        }         catch (InvalidPreferencesFormatException e) {            log.severe("InvalidPreferencesFormatException caught.");         }                prefs = Preferences.userNodeForPackage(LoginServlet.class);        log.finer("loadConfiguration(ServletConfig)");        loginURL = prefs.get("LoginURL", null);                Properties p = new Properties();        String path = prefs.get("TemplateDir", null);        System.out.println("path: "+path);        /* 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" );        // Should set log directory.        return p;    }