Use of java.time.Duration.withSeconds(long) is not allowed.

See: https://errorprone.info/bugpattern/JavaDurationWithSeconds