crs = SpatialReferenceManager.wkidToCRS(wkid, true);
} catch (Exception e) {
crs = SpatialReferenceManager.wkidToCRS("4326", true);
}
if (crs != null) {
mapContext = new GraphicEnhancedMapContext(crs);
File mapDescFile = new File(realMapDescFilePath);
LayerFactory layerFactory = new LayerFactory(mapDescFile
.getParentFile().getAbsolutePath());
for (int i = 0, count = mapDesc.getLayerInfos().size(); i < count; i++) {