ConcurrentBag to common code refactor (share code between Java 6/7 and Java 8)