static Event makeEvent(GreenhouseControls gc, Map.Entry<String, Long> me) {
        String key = me.getKey();
        Long value = me.getValue();
        if(key.equals("Bell")) {
            return new BellFactory().getEvent(gc, value);
        } else if(key.equals("LightOn")) {
            return new LightOnFactory().getEvent(gc, value);
        } else if(key.equals("LightOff")) {
            return new LightOffFactory().getEvent(gc, value);
        } else if(key.equals("WaterOn")) {
            return new WaterOnFactory().getEvent(gc, value);
        } else if(key.equals("WaterOff")) {
            return new WaterOffFactory().getEvent(gc, value);
        } else if(key.equals("ThermostatDay")) {
            return new ThermostatDayFactory().getEvent(gc, value);
        } else if(key.equals("ThermostatNight")) {
            return new ThermostatNightFactory().getEvent(gc, value);
        }
        return null;
    }