conferenceNames.add(conference.getName());
}
if (conferenceNames.size() > 0) {
StringBuilder announcementStringBuilder = new StringBuilder(
"Last chance to attend! The following conferences are nearly sold out: ");
Joiner joiner = Joiner.on(", ").skipNulls();
announcementStringBuilder.append(joiner.join(conferenceNames));
MemcacheService memcacheService = MemcacheServiceFactory.getMemcacheService();
memcacheService.put(Constants.MEMCACHE_ANNOUNCEMENTS_KEY,
announcementStringBuilder.toString());
}
response.setStatus(204);