I got the XWikiContext and I want to get the object[2] for example. How do I get this especific object?

I'm working with XWiki.CalendarEvent[] and I want to get an especific XWiki.CalendarEvent[0] or XWiki.CalendarEvent [2] for example.

Thanks in advance!

--
André Pestana