return new com.google.api.services.calendar.Calendar.Builder(TRANSPORT, JSON_FACTORY, getStoredCredentials(GAPPS_ADMIN_EMAIL))
.setApplicationName(APPLICATION_NAME)
.build();
We also have situations when sharing calendars with users with:
Calendar client = new Calendar(TRANSPORT, JSON_FACTORY, getStoredCredentials(GAPPS_ADMIN_EMAIL));
Again, both versions work perfectly fine with no difference on the Standard Environment, but both situations fail on the Flexible Environment.