writeLock.lock();
Long previousTime = userIdAccessTimeMap.put(userId, System.currentTimeMillis());
if(previousTime == null) {
// First viewing for this user
if(!userId.isGuest()) {
postEvents.postEvent(new UserStartingViewingProjectEvent(projectId, userId));
}
logStats();
}
}
finally {