}
resourceMap.put("leaderElectionId", prefix + "_"
+ currentTimeMillisStr + "_" + slingId);
resetLeaderElectionId = false;
}
resourceResolver.commit();
// SLING-2892: only in success case: remember the last heartbeat value written
lastHeartbeatWritten = currentTime;
// and set the first heartbeat written value - if it is not already set
if (firstHeartbeatWritten==-1) {