protected void onRegisterEventSourceHook(final MyFullCalendarConfig config, final ICalendarFilter filter)
{
if (filter instanceof TeamCalCalendarFilter) {
// Colors are handled event based, this is just the default value
final EventSource eventSource = new EventSource();
eventProvider = new TeamCalEventProvider(teamEventDao, (TeamCalCalendarFilter) filter);
eventSource.setEventsProvider(eventProvider);
eventSource.setBackgroundColor("#1AA118");
eventSource.setColor("#000000");
eventSource.setTextColor("#222222");
config.add(eventSource);