private void loadFromFile() {
        try {
            FileInputStream file = new FileInputStream(filename);
            properties = new Properties();
            properties.loadFromXML(file);
            file.close();
        } catch (Exception e) {
            System.err.println( e.getMessage() );
        }
    }