public String buildActivateString(String startPhase, String endPhase) {
        StringBuilder sb = new StringBuilder();

        boolean add = false;
        for (int i = 0; i < phaseOrder.length; i++) {
            if (phaseOrder[i].equals(startPhase))
                add = true;

            if (add) {
                if (sb.length() != 0)
                    sb.append(",");
                sb.append(phaseOrder[i]);
            }

            if (phaseOrder[i].equals(endPhase))
                add = false;
        }

        return sb.toString();
    }