ApplicationGIS.addLayersToMap(map, layers, startposition, project);
IMap map; map.sendCommandASync(new AddLayerCommand(layer) );