for (String source : Main.pref.getCollection("imagery.layers.sites", Arrays.asList(DEFAULT_LAYER_SITES))) {
if (clearCache) {
CachedFile.cleanup(source);
}
try {
ImageryReader reader = new ImageryReader(source);
Collection<ImageryInfo> result = reader.parse();
defaultLayers.addAll(result);
} catch (IOException ex) {
Main.error(ex, false);
} catch (SAXException ex) {
Main.error(ex);