code: function replaceLambdaVariables(sPath, mLambdaVariableToPath) {
  			var aSegments = sPath.split("/");
  
  			aSegments[0] = mLambdaVariableToPath[aSegments[0]];
  			return aSegments[0] ? aSegments.join("/") : sPath;
  		}
docs: 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