public static String getWinningVote(Proposal proposal) {
        // Create an index of options -> numVotes
        Map<Integer, Integer> voteCount = new HashMap<Integer, Integer>();
        System.out.println(proposal);
        VoteModel voteModel = new VoteModel();
        for (Integer i : proposal.getVotes()) {
            Vote vote = (Vote) voteModel.get(i);
            System.out.println(vote.toString());
            if (voteCount.containsKey(vote.getOptionID())) {
                Integer num = voteCount.get(vote.getOptionID());
                voteCount.put(vote.getOptionID(), new Integer(++num));
            } else {
                voteCount.put(vote.getOptionID(), new Integer(1));
            }
        }
        if (!voteCount.isEmpty()) {
            System.out.println("Vote count is empty");
            Integer max = new Integer(voteCount.get(voteCount.keySet().iterator().next()));

            // Loop through the index and find which key has the highest value
            for (Integer option : voteCount.keySet()) {
                System.out.println("option: " + option + " max: " + max);
                System.out.println(voteCount.get(option));
                System.out.println(voteCount.get(max));
                if (voteCount.get(max) == null || (int) voteCount.get(option) > (int) voteCount.get(max)) {
                    max = option;
                }
            }
            return proposal.getOptions().get(max);
        }
        return "None";
    }