code: public static long getIdlenessStartTime(Record record) {
          long lastAccessTime = record.getLastAccessTime();
          return lastAccessTime <= 0 ? record.getCreationTime() : lastAccessTime;
      }
docs: Returns last-access-time of an entry if it was accessed before, otherwise it returns creation-time of the entry.
  This calculation is required for max-idle-seconds expiration, because after first creation of an entry via
  {@link com.hazelcast.core.IMap#put}, the {@code lastAccessTime} is zero till the first access.
  Any subsequent get or update operation after first put will increase the {@code lastAccessTime}.