return new AstroCatConfig(url, getHTMLQueryResultHandler());
}
// for compatibility, also allow Skycat config files here
if (filename.endsWith(".cfg")) {
return new SkycatConfigFile(url, getHTMLQueryResultHandler());
}
throw new RuntimeException("Expected an AstroCat XML file, or a Skycat style .cfg file");
}