public void run(int sessionId, String hostname, int tempValue, int ultrasonicValue, int hour, int minute) {
        
        // if an initial context phase has not been performed
        if (initialContextPhase.hasRun() == false) {
            System.out.println("initialContextPhase.hasRun() == false");
            initialContextPhase.run(sessionId, hostname, tempValue, ultrasonicValue, hour, minute);
        } else {
            // else run a full context phase
            System.out.println("initialContextPhase.hasRun() == true");
            contextPhase.run(sessionId, hostname, tempValue, ultrasonicValue, hour, minute);
//            writeIntent();
        }
    }