public void loadProperties(File filename) {
		try {
			Properties prop = new Properties();
			FileInputStream in = new FileInputStream(
					filename);
			prop.load(in);
			setUsername(prop.getProperty(usernameProperty));
			setHost(prop.getProperty(hostnameProperty));
			setOpenID(prop.getProperty(openidProperty));
			
			String port = prop.getProperty(portProperty);
			if (port != null) 
				setPort(Integer.parseInt(port));
		} catch (FileNotFoundException e) {
			// ok, nothing to load
		} catch (IOException e) {
			e.printStackTrace();
		}
	}