private List<Event> findConflicts(List<Event> events) {
        Event emptyOuter = new Event(null, null, null, null, null, null);

        List<Event> conflicting = new ArrayList<Event>();
        Event previous = null;
        for (Event e : events) {
            if (previous == null) {
                previous = e;
                continue;
            }
            // conflicts when: same starttime, same endtime,
            // starttime less than other endtime and greater than other
            // starttime
            int starttime = emptyOuter.toCompare(e.getStartTime(),
                    previous.getStartTime());
            int endtime = emptyOuter.toCompare(e.getEndTime(),
                    previous.getEndTime());
            int startendtime = emptyOuter.toCompare(e.getStartTime(),
                    previous.getEndTime());
            int endstarttime = emptyOuter.toCompare(e.getEndTime(),
                    previous.getStartTime());
            if (starttime == 0 || endtime == 0
                    || (starttime < 0 && startendtime > 0) 
                    || (starttime > 0 && endstarttime < 0)) {
                conflicting.add(new Event("Next Conflict:","000000000000","000000000000",null,null, null));
                conflicting.add(previous);
                conflicting.add(e);
                }
            previous=e;
        }
        return conflicting;
    }