Java tutorial
//package com.java2s; //License from project: Apache License import java.util.UUID; public class Main { private static String ensureUniqueness(String desiredName) { return (desiredName + UUID.randomUUID()).replace("-", "_"); // FIXME: this should really be done by calling into the REGISTRY subsystem } }