public static Host read(BufferedReader reader) throws IOException {

		boolean finished = false;
		String line;
		Map<String, String> properties = new HashMap<String, String>();

		reader.mark(1024);
		line = reader.readLine();
		if ((line != null) && line.startsWith("[")) {
			reader.reset();
			finished = true;
		}
		while ((line != null) && !finished) {
			properties.put(line.split("=")[0], line.split("=")[1]);
			reader.mark(1024);
			line = reader.readLine();
			if ((line != null) && line.startsWith("[")) {
				reader.reset();
				finished = true;
			}
		}
		Host host = new Host(null, null, 0);
		for (String prop : properties.keySet()) {
			host.setProperty(prop, properties.get(prop));
		}
		return host;
	}