public static Properties loadConfig() throws IOException {
		File configFile = new File("config.properties");
		if (!configFile.exists()) {
			configFile.createNewFile();
		}
		FileInputStream configInputStream = new FileInputStream(configFile);
		Properties configProperties = new Properties();
		configProperties.load(configInputStream);

		if (!configProperties.containsKey("package.context"))
			configProperties.put("package.context", "true");
		if (!configProperties.containsKey("hash.context"))
			configProperties.put("hash.context", "true");
		if (!configProperties.containsKey("files.context"))
			configProperties.put("files.context", "true");
		if (!configProperties.containsKey("cache.lifetime"))
			configProperties.put("cache.lifetime", "600000");
		if (!configProperties.containsKey("server.port"))
			configProperties.put("server.port", "80");

		FileOutputStream configOutputStream = new FileOutputStream(configFile);
		configProperties.store(configOutputStream, "BotA Patch Server Properties File");

		return configProperties;

	}