// Append downloaded data to JOSM
OsmDataLayer layer = Main.main.getEditLayer();
if(layer == null || this.newLayer)
Main.main.addLayer(tmpLayer);
else
layer.mergeFrom(tmpLayer);
// Warm about missing primitives
final Set<PrimitiveId> errs = mainTask.getMissingPrimitives();
if (errs != null && !errs.isEmpty())
GuiHelper.runInEDTAndWait(new Runnable() {