public static String createHostName(String prefix) {
        String usePrefix = prefix;
        if ((usePrefix == null) || usePrefix.isEmpty()) {
            usePrefix = "javahost";
        }
        return usePrefix + "-" + safeCreateUUID();
    }
public static String createHostName ( String prefix ) { String usePrefix = prefix ; if ( ( usePrefix == null ) || usePrefix . isEmpty ( ) ) { usePrefix = "javahost" ; } return usePrefix + "-" + safeCreateUUID ( ) ; }
Convenience method for generating unique host names, safe to pass to the EventProcessorHost constructors
that take a hostName argument.
<p>
If a prefix is supplied, the constructed name begins with that string. If the prefix argument is null or
an empty string, the constructed name begins with "javahost". Then a dash '-' and a UUID are appended to
create a unique name.

@param prefix String to use as the beginning of the name. If null or empty, a default is used.
@return A unique host name to pass to EventProcessorHost constructors.