} catch (URISyntaxException e) {
LOG.warn("Invalid syntax for the URL.",e);
return ConnectionStatus.INVALID;
}
TFSTeamProjectCollection projects = new TFSTeamProjectCollection(uri,
credentials);
addProxy(projects.getHTTPClient());
try {
projects.getWorkItemClient().getProjects();
//projects.getWorkItemClient();
LOG.info("No UnauthorizedException was thrown when attempting to connect with blank credentials.");
return ConnectionStatus.VALID;
} catch (UnauthorizedException | TFSUnauthorizedException e) {
LOG.info("Got an UnauthorizedException, which means that the TFS url was good.");