code: public static UUID uuidForTimeMillis(long timeMillis, int sequence) {
          long time = getRawTimestamp(timeMillis);
          return new UUID(getMostSignificantBits(time), getLeastSignificantBits(sequence, 0));
      }
docs: Fabricates a non-unique UUID value for the specified timestamp that sorts relative to other similar UUIDs based
  on the value of {@code sequence}.  Be very careful about using this as a unique identifier since the usual
  protections against conflicts do not apply.  At most, only assume this is unique within a specific context
  where the sequence number is unique w/in that context.