throw new IOException(
"Cannot define only one of USERNAME or PASSWORD, must define both or neither");
}
}
final HTTPClient http = new SimpleHttpClient();// new MultithreadedHttpClient();
// TODO: let HTTPClient be configured for gzip
// http.setTryGzip(tryGZIP);
http.setUser(config.getUser());
http.setPassword(config.getPassword());
int timeoutMillis = config.getTimeoutMillis();
http.setConnectTimeout(timeoutMillis / 1000);
final URL capabilitiesURL = (URL) URL.lookUp(params);
// WFSClient performs version negotiation and selects the correct strategy
WFSClient wfsClient;