Here you can find the source of generateUUID()
public static String generateUUID()
//package com.java2s; //License from project: Open Source License import java.util.UUID; public class Main { /**//from ww w. j a v a 2 s .com * Generates a random UUID used as a RequestID for SAML request. * * @return */ public static String generateUUID() { UUID uuid = UUID.randomUUID(); String strUUID = "a" + uuid.toString(); // XML validation requires that the request ID does not start with a // number return strUUID; } }