code: public static boolean isValidUUID(String uuid) {
  
          try {
              return (null != uuid) && (null != UUID.valueOf(uuid));
          } catch (NumberFormatException e) {
              // return false
          }
          return false;
      }
docs: Returns <code>true</code> if the given UUID is valid.<p>
  
  @param uuid the UUID to check
  
  @return <code>true</code> if the given UUID is valid