The name of the parameter the uniquely identifies each associated item. The
value is a Level 4 UUID.

@param sUUIDName
New value. May neither be <code>null</code> nor empty.
@return this
976412
@Nonnull
  public FineUploader5Request setUUIDName (@Nonnull @Nonempty final String sUUIDName)
  {
    ValueEnforcer.notEmpty (sUUIDName, "UUIDName");
    m_sRequestUUIDName = sUUIDName;
    return this;
  }
759839
public static UUID randomUUID(boolean isSecure) {
		final Random ng = isSecure ? Holder.numberGenerator : RandomUtil.getRandom();

		byte[] randomBytes = new byte[16];
		ng.nextBytes(randomBytes);
		randomBytes[6] &= 0x0f; /* clear version */
		randomBytes[6] |= 0x40; /* set to version 4 */
		randomBytes[8] &= 0x3f; /* clear variant */
		randomBytes[8] |= 0x80; /* set to IETF variant */
		return new UUID(randomBytes);
	}
180465
protected List<CmsUUID> itemIdsToUUIDs(Collection<String> itemIds) {

        List<CmsUUID> ids = new ArrayList<CmsUUID>();
        for (String itemId : itemIds) {
            ids.add(getUUIDFromItemID(itemId));
        }
        return ids;
    }
380085
public SIBUuid8 mapMeNameToUuid(String name) {
        SIBUuid8 result = null;

        if (TraceComponent.isAnyTracingEnabled()
            && tc.isEntryEnabled())
            SibTr.entry(tc, "mapMeNameToUuid", name);

        // Be tolerant of bad args
        if (name != null) {
            // First, short circuit the local ME
            if (name.equals(getMessagingEngineName()))
                result = getMessagingEngineUuid();
            else
                ;// Venu liberty change. Here the code was going to TrmMeMain
        }

        if (TraceComponent.isAnyTracingEnabled()
            && tc.isEntryEnabled())
            SibTr.exit(tc, "mapMeNameToUuid", result);

        return result;
    }
594949
public static UUID convertDotNetBytesToUUID(byte[] dotNetBytes)
	{
		if(dotNetBytes == null || dotNetBytes.length != GUIDSIZE)
		{
			return new UUID(0l, 0l);
		}
		
		byte[] reOrderedBytes = new byte[GUIDSIZE];
		for(int i=0; i<GUIDSIZE; i++)
		{
			int indexInReorderedBytes;
			switch(i)
			{
				case 0:
					indexInReorderedBytes = 3;
					break;
				case 1:
					indexInReorderedBytes = 2;
					break;
				case 2:
					indexInReorderedBytes = 1;
					break;
				case 3:
					indexInReorderedBytes = 0;
					break;
				case 4:
					indexInReorderedBytes = 5;
					break;
				case 5:
					indexInReorderedBytes = 4;
					break;
				case 6:
					indexInReorderedBytes = 7;
					break;
				case 7:
					indexInReorderedBytes = 6;
					break;
				default:
					indexInReorderedBytes = i;
			}
			
			reOrderedBytes[indexInReorderedBytes] = dotNetBytes[i];
		}
		
		ByteBuffer buffer = ByteBuffer.wrap(reOrderedBytes);
		long mostSignificantBits = buffer.getLong();
		long leastSignificantBits = buffer.getLong();
		return new UUID(mostSignificantBits, leastSignificantBits);
	}
171181
@SuppressWarnings("unchecked")
    public <T> T getObjectByUuid(Class<T> clazz, String uuid) {
        return getObjectByUuid(clazz, UUID.fromString(uuid));
    }
257236
@Override
  public String getOrCreateForKey(String key) {
    return uuidsByKey.computeIfAbsent(key, k -> Uuids.create());
  }
1035933
private static CmsUUID toUuid(String uuid) {

        if ("null".equals(uuid) || CmsStringUtil.isEmpty(uuid)) {
            return null;
        }
        return new CmsUUID(uuid);

    }
543034
@Pure
	public BusItineraryHalt getBusHalt(UUID uuid) {
		if (uuid == null) {
			return null;
		}
		for (final BusItineraryHalt busHalt : this.validHalts) {
			if (uuid.equals(busHalt.getUUID())) {
				return busHalt;
			}
		}
		for (final BusItineraryHalt busHalt : this.invalidHalts) {
			if (uuid.equals(busHalt.getUUID())) {
				return busHalt;
			}
		}
		return null;
	}
513030
public static final UUID parseUUID(String value)
   {
      return value == null || value.isEmpty() ? null : UUID.fromString(value);
   }
210593
public static java.util.UUID fromUU64(String uu64) {
        String uu16 = UU16FromUU64(uu64);
        return java.util.UUID.fromString(UU(uu16));
    }
996504
public static boolean isUuid(final String uuid) {
        return uuid != null && (uuid.length() == 36 || uuid.length() == 32)
                && UUID_PATTERN.matcher(uuid).matches();
    }
1237083
@Override
	public void removeByUuid(String uuid) {
		for (CommerceCountry commerceCountry : findByUuid(uuid,
				QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceCountry);
		}
	}
727000
public static String createUniqueIdentifier() {
		String id;
		do {
			id = UUID.randomUUID().toString();
		} while (getSREFromId(id) != null);
		return id;
	}
974204
public static UsernameAttribute createUsernameAttribute(String username) {
		UsernameAttribute attribute = new UsernameAttribute();

		try {
			attribute.setUsername(username.getBytes("UTF-8"));
		} catch (UnsupportedEncodingException ueex) {
			throw new UndeclaredThrowableException(ueex);
		}
		return attribute;
	}
498768
public void setUUID(String id) {
		try {
			this.value = (id != null) ? UUID.fromString(id) : null;
		} catch (Throwable exception) {
			assert id != null;
			this.value = UUID.nameUUIDFromBytes(id.getBytes());
		}
		this.type = AttributeType.UUID;
		this.assigned = this.value != null;
	}
210051
@Pure
	public BusHub getBusHub(UUID uuid) {
		if (uuid == null) {
			return null;
		}
		for (final BusHub busHub : this.validBusHubs) {
			if (uuid.equals(busHub.getUUID())) {
				return busHub;
			}
		}
		for (final BusHub busHub : this.invalidBusHubs) {
			if (uuid.equals(busHub.getUUID())) {
				return busHub;
			}
		}
		return null;
	}