@chris , @rbotzer - What if we have to generate UID in a distributed system ?
Java UUID won’t ensure a unique key in that case.