class HgUuid {

    private static String encode(UUID uuid) {<FILL_FUNCTION_BODY>}

    /**
     * Get a UUID in Base58 FORM
     *
     * @return
     */
    public static String newUUID() {
        return encode(UUID.randomUUID());
    }

}

        ByteBuffer bb = ByteBuffer.wrap(new byte[16]);
        bb.putLong(uuid.getMostSignificantBits());
        bb.putLong(uuid.getLeastSignificantBits());
        return Base58.encode(bb.array());
    
<no_super_class>