while (startCopyIndex == -1 && index >= 0) {
EventRecord aRecord = eventRecords.get(index);
if (aRecord.getType() == EventRecordType.NETWORK_REQUEST_WILL_BE_SENT) {
// see if there's a redirect
NetworkRequestWillBeSentEvent request = aRecord.cast();
String redirectUrl = request.getRedirectUrl();
if(redirectUrl != null) {
// if so, keep searching for the original URL request
searchUrl = redirectUrl;
}