Just use a plain 'ol AtomicInteger for ID creation.