protected int countDifferences(Vector<Boolean> oldValue, Vector<Boolean> newValue) {
        if (oldValue.equals(newValue)) {
            return 0;
        }
        if (oldValue.size() <= newValue.size()) {
            int result = 0;
            for (int i = 0; i < oldValue.size(); i++) {
                if (oldValue.get(i) != newValue.get(i)) {
                    result = result + 1;
                }
            }
            for (int j = oldValue.size(); j < newValue.size(); j++) {
                if (newValue.get(j)) {
                    result = result + 1;
                }
            }
            return result;
        }
        return countDifferences(newValue, oldValue);
    }