private void load() throws IOException {
		File file = new File(settingsFilename);
		if (!file.exists()) {
			System.out.println("Settings file " + settingsFilename
					+ " is not found");
			return;
		}

		FileReader reader = new FileReader(file);
		BufferedReader br = new BufferedReader(reader);
		String s = br.readLine();

		while (s != null) {
			s = s.trim();
			if (!s.isEmpty() && !s.startsWith("#")) {
				int i = s.indexOf("=");
				if (i > 0) {
					String key = s.substring(0, i).trim();
					if (!settings.containsKey(key))
						System.err.println("Warning: unknown settings key "
								+ key);
					settings.put(key, s.substring(i + 1).trim());
				} else
					System.err.println("Ignoring line " + s);
			}
			s = br.readLine();
		}

		reader.close();
	}