// Path: src/main/java/plugin/IliasPlugin.java
// public enum LoginStatus {
// 	WRONG_PASSWORD, CONNECTION_FAILED, SUCCESS
// };


import org.apache.http.impl.client.CloseableHttpClient;
import plugin.*;
import plugin.IliasPlugin.LoginStatus;
import java.util.HashMap;
package control;



public class IliasManager {

	private IliasPlugin ilias;

	private static IliasManager iliasManager;

	private IliasManager() {
		String magicVariable = "kn";

		HashMap<String, IliasPlugin> map = new HashMap<>();
		map.put("kn", new KNIlias());
		map.put("kit", new KITIlias());
		map.put("demo", new DemoIlias());
		map.put("hsf", new HSFIlias());
		map.put("tueb", new TuebIlias());
		map.put("wbs", new WBSIlias());
		map.put("ube", new UniBernIlias());
		map.put("phtg", new PHTGIlias());
		map.put("stugge", new StuggeIlias());

		this.ilias = map.get(magicVariable);
	}

	public static IliasManager getInstance() {
		if (iliasManager == null) {
			iliasManager = new IliasManager();
		}

		return iliasManager;
	}

// Path: src/main/java/plugin/IliasPlugin.java
// public enum LoginStatus {
// 	WRONG_PASSWORD, CONNECTION_FAILED, SUCCESS
// };


// Path: src/main/java/control/IliasManager.java
import org.apache.http.impl.client.CloseableHttpClient;
import plugin.*;
import plugin.IliasPlugin.LoginStatus;
import java.util.HashMap;

package control;



public class IliasManager {

	private IliasPlugin ilias;

	private static IliasManager iliasManager;

	private IliasManager() {
		String magicVariable = "kn";

		HashMap<String, IliasPlugin> map = new HashMap<>();
		map.put("kn", new KNIlias());
		map.put("kit", new KITIlias());
		map.put("demo", new DemoIlias());
		map.put("hsf", new HSFIlias());
		map.put("tueb", new TuebIlias());
		map.put("wbs", new WBSIlias());
		map.put("ube", new UniBernIlias());
		map.put("phtg", new PHTGIlias());
		map.put("stugge", new StuggeIlias());

		this.ilias = map.get(magicVariable);
	}

	public static IliasManager getInstance() {
		if (iliasManager == null) {
			iliasManager = new IliasManager();
		}

		return iliasManager;
	}

	public LoginStatus login(String username, String password) {