Here you can find the source of generateAttributeId()
public static String generateAttributeId()
//package com.java2s; //License from project: Open Source License import java.util.UUID; public class Main { public static String generateAttributeId() { return getAttributeIdPrefix() + generateUniqueId(); }/*from w ww. j a v a 2 s . c om*/ public static String getAttributeIdPrefix() { return "a_"; } public static String generateUniqueId() { return UUID.randomUUID().toString().replace('-', '_'); } }