URL url = new URL(WFS_SERVER_URL + "service=WFS&request=GetCapabilities");
params.put(WFSDataStoreFactory.URL.key, url);
params.put(WFSDataStoreFactory.TRY_GZIP.key, Boolean.TRUE);
//give it five seconds to respond...
params.put(WFSDataStoreFactory.TIMEOUT.key, Integer.valueOf(5000));
DataStore remoteStore = factory.createDataStore(params);
FeatureSource fs = remoteStore.getFeatureSource(TOPP_STATES);
remoteStatesAvailable = Boolean.TRUE;
// check a basic response can be answered correctly
DefaultQuery dq = new DefaultQuery(TOPP_STATES);
FilterFactory ff = CommonFactoryFinder.getFilterFactory(null);