for (ImageryInfo info : ImageryLayerInfo.instance.getLayers()) {
if (existingSlippyMapUrls.contains(info.getUrl())) {
continue;
}
try {
TileSource source = TMSLayer.getTileSource(info);
if (source != null) {
sources.add(source);
}
} catch (IllegalArgumentException ex) {
if (ex.getMessage() != null && !ex.getMessage().isEmpty()) {