public static Layer GetSafeStdLayer(string shopID, string layerID) { Layer layer = FindLayer(shopID, layerID); if (layer == null) { layer = CreateHelper.CreateLayer(shopID, layerID); string key = GetLayerKey(shopID, layerID); InputMart.Instance.Layer.Add(key, layer); } return(layer); }