if (!location.startsWith("http:") && !location.startsWith("file:"))
location = "file:" + location;
return acquireNcml(cache, factory, hashKey, location, buffer_size, cancelTask, spiObject);
} else if (location.startsWith("http:")) {
ServiceType stype = disambiguateHttp(location);
if (stype == ServiceType.OPENDAP)
return acquireDODS(cache, factory, hashKey, location, buffer_size, cancelTask, spiObject); // try as a dods file
else if (stype == ServiceType.CdmRemote)
return acquireRemote(cache, factory, hashKey, location, buffer_size, cancelTask, spiObject); // open through CDM remote
// else fall through for HttpService