long (@Nullable String serviceUrl, @NotNull EventLogConnectionSettings settings) { if (isEmptyOrSpaces(serviceUrl)) return 0; try { StatsRequestResult<Long> result = StatsHttpRequests.head(serviceUrl, settings).send(r -> r.lastModified()); return result.getResult() != null ? result.getResult() : 0L; } catch (StatsResponseException | IOException e) { return 0; } }