Fix: copy-paste fial (check ID against wrong list).
Use AtomicInteger instead of strange int wrapper class.
Fix str comp using ==.
NOSONAR ignoring ex in closeQuietly()