function replaceLambdaVariables(sPath, mLambdaVariableToPath) {
			var aSegments = sPath.split("/");

			aSegments[0] = mLambdaVariableToPath[aSegments[0]];
			return aSegments[0] ? aSegments.join("/") : sPath;
		}
function replaceLambdaVariables(sPath, mLambdaVariableToPath) {
			var aSegments = sPath.split("/");

			aSegments[0] = mLambdaVariableToPath[aSegments[0]];
			return aSegments[0] ? aSegments.join("/") : sPath;
		}
function replaceLambdaVariables ( sPath , mLambdaVariableToPath ) { var aSegments = sPath . split ( "/" ) ; aSegments [ 0 ] = mLambdaVariableToPath [ aSegments [ 0 ] ] ; return aSegments [ 0 ] ? aSegments . join ( "/" ) : sPath ; }
Replaces an optional lambda variable in the first segment of the given path by the
correct path.

@param {string} sPath The path with an optional lambda variable at the beginning
@param {object} mLambdaVariableToPath The map from lambda variable to full path
@returns {string} The path with replaced lambda variable
Replaces an optional lambda variable in the first segment of the given path by the correct path .
Replaces the given path with the corresponding value in the given map.