//if(cap == null) {
CswCatalog cswCatalog = new CswCatalog(this.getGetCapabiltiesUrl(), "",
readCswProfiles().getProfileById(this.getProfileId()));
cswCatalog.setConnectionTimeoutMs(this.getConnectionTimeoutMs());
cswCatalog.setResponseTimeoutMs(this.getResponseTimeoutMs());
cswCatalog.connect();
cap = cswCatalog.getCapabilities();
this.setCapabilities(cap);
//CAPABILITIES_CACHE.put(key, cap);
//}
this.setGetMetadataRecordUrl(cap.get_getRecordByIDGetURL());