public static UUID fromString(String name) {

    String[] components = name.split("-");
    if (components.length != 5) {
      throw new IllegalArgumentException("Invalid UUID string: " + name);
    }
    long msb = Long.parseLong(components[0], 16);
    msb = msb << 16;
    msb = msb | Long.parseLong(components[1], 16);
    msb = msb << 16;
    msb = msb | Long.parseLong(components[2], 16);

    long lsb = Long.parseLong(components[3], 16);
    lsb = lsb << 48;
    lsb = lsb | Long.parseLong(components[4], 16);

    return new UUID(msb, lsb);
  }
public static UUID fromString ( String name ) { String [ ] components = name . split ( "-" ) ; if ( components . length != 5 ) { throw new IllegalArgumentException ( "Invalid UUID string: " + name ) ; } long msb = Long . parseLong ( components [ 0 ] , 16 ) ; msb = msb << 16 ; msb = msb | Long . parseLong ( components [ 1 ] , 16 ) ; msb = msb << 16 ; msb = msb | Long . parseLong ( components [ 2 ] , 16 ) ; long lsb = Long . parseLong ( components [ 3 ] , 16 ) ; lsb = lsb << 48 ; lsb = lsb | Long . parseLong ( components [ 4 ] , 16 ) ; return new UUID ( msb , lsb ) ; }
@param name - see {@link java.util.UUID#fromString(String)}.
@return see {@link java.util.UUID#fromString(String)}.