if (this.har != null && harPageRef != null) {
HarEntry entry = new HarEntry(harPageRef);
entry.setTime(0);
entry.setRequest(new HarRequest(method, url, "HTTP/1.1"));
entry.setResponse(new HarResponse(-998, "Bad URI", "HTTP/1.1"));
entry.setTimings(new HarTimings());
har.getLog().addEntry(entry);
}
throw new BadURIException("Bad URI requested: " + url);
}