public static void validateUUID ( String uuid , String uuidValueOf ) throws RuntimeException { if ( ! WSManUtils . isUUID ( uuid ) ) { throw new RuntimeException ( "The returned " + uuidValueOf + " is not a valid UUID value! " + uuidValueOf + ": " + uuid ) ; } }
Validates a UUID value and throws a specific exception if UUID is invalid .