public boolean hasRun() {
        boolean hasRun = false;

        cal = new GregorianCalendar();
        currentDate = String.valueOf(cal.get(Calendar.DAY_OF_MONTH))
                + "-"
                + String.valueOf(cal.get(Calendar.MONTH))
                + "-"
                + String.valueOf(cal.get(Calendar.YEAR));

        ClientInfo info = new ClientInfo();
        info.open();
        int noSessions = info.getSessionId();
        info.close();
        
        if (noSessions == 1) {
            // run an initial context phase
            System.out.println("hasRun(): " + noSessions);
            hasRun = false;
        } else {
            // otherwise don't run an initial context phase and
            // run a context phase instead
            hasRun = true;
            System.out.println("hasRun(): " + noSessions);
        }

        return hasRun;
    }