Works again with HSQL.
Changed visibility of calendarsWithFullAccess from private tp protected.
TeamEvents are written to calendars of local user with fullaccess.
Fixed null pointer exception.