CreateMapCommand cmCommand = new CreateMapCommand(null, cleanedGeoResources, project);
project.sendSync(cmCommand);
map = cmCommand.getCreatedMap();
layers=map.getMapLayers();
} else {
AddLayersCommand alCommand = new AddLayersCommand(cleanedGeoResources, startPosition2);
map.sendCommandSync(alCommand);
layers=alCommand.getLayers();
}
if (!ApplicationGISInternal.getOpenMaps().contains(map)) {
openMap(map, wait);
}