return ret;
Random random = new Random();
ret = new ArrayList<Event>();
for (int count = 0; count < 2; count++) {
Event event = new Event();
event.setKey(key);
event.setTitle("random");
Calendar cal = Calendar.getInstance();
cal.add(Calendar.DAY_OF_YEAR, random.nextInt(30));
event.setDateTime(cal.getTime());
event.setMajor(random.nextInt(5) == 0);
if (event.isMajor())
event.getTags().add("#major");
event.setColor(Integer.toHexString(random
.nextInt(256 * 256 * 256)));
while (event.getColor().length() < 0)
event.setColor("0" + event.getColor());
event.setColor("#" + event.getColor());
ret.add(event);
}
Collections.sort(ret, new Comparator<Event>() {
@Override
public int compare(Event o1, Event o2) {