In Java you could also use the UUID class, but doubt its ported into
GWT. Also, simply using the long value of time is also effective
assuming that there is no chance of ever generating 2 at the exact
same time(i.e. result of a user action): Long.toString(new
Date().getTime());