Ah yes, the good old days of calendar.
It is completly different than the old 3.x series and therefore won't be as easy as copying some code.
calendar uses acs-events which we abstracted to be very generic. Other packages (calendar,events, etc) could then extend/use this and also have access to another services acs-event (i.e. calendar could show events). I left before Gary even got close to finishing calendar and the work I did on events was passed on to someone else. Of course since Java emits better html and also querys RDBMS better AD shitcanned the whole thing ;)