Here you can find the source of getUUID(String id)
private static UUID getUUID(String id)
//package com.java2s; //License from project: Creative Commons License import java.util.*; public class Main { private static UUID getUUID(String id) { return UUID.fromString(id.substring(0, 8) + "-" + id.substring(8, 12) + "-" + id.substring(12, 16) + "-" + id.substring(16, 20) + "-" + id.substring(20, 32)); }//ww w .j a va2 s. co m }