final HttpEvent httpEvent = startHttpEvent();
final URL authority = StringExtensions.getUrl(getTokenEndpoint());
if (authority == null) {
stopHttpEvent(httpEvent);
throw new AuthenticationException(ADALError.DEVELOPER_AUTHORITY_IS_NOT_VALID_URL);
<BUG>}
try {</BUG>
mWebRequestHandler.setRequestCorrelationId(mRequest.getCorrelationId());
ClientMetrics.INSTANCE.beginClientMetricsRecord(authority, mRequest.getCorrelationId(),
headers);

final HttpEvent httpEvent = startHttpEvent();
final URL authority = StringExtensions.getUrl(getTokenEndpoint());
if (authority == null) {
stopHttpEvent(httpEvent);
throw new AuthenticationException(ADALError.DEVELOPER_AUTHORITY_IS_NOT_VALID_URL);
}
httpEvent.setHttpPath(authority);
try {
mWebRequestHandler.setRequestCorrelationId(mRequest.getCorrelationId());
ClientMetrics.INSTANCE.beginClientMetricsRecord(authority, mRequest.getCorrelationId(),
headers);
