code: private boolean isUUID(String uuid) {
          try {
              UUID.fromString(uuid);
              return true;
          } catch (Exception ex) {
              return false;
          }
      }
docs: Check if a string is a UUID
  @param uuid - UUID value
  @return true if it is a UUID or false if it is not an UUID