function addMessage(oMessage) {
			var oReportMessage = {
					code : oMessage.code,
					message : oMessage.message,
					technical : oMessage.technical
				};

			Object.keys(oMessage).forEach(function (sProperty) {
				if (sProperty[0] === '@') {
					if (sProperty.endsWith(".numericSeverity")) {
						oReportMessage.numericSeverity = oMessage[sProperty];
					} else if (sProperty.endsWith(".longtextUrl") && oError.requestUrl
							&& sResourcePath) {
						oReportMessage.longtextUrl =
							_Helper.makeAbsolute(oMessage[sProperty], oError.requestUrl);
					}
				}
			});

			if (typeof oMessage.target !== "string") {
				aUnboundMessages.push(oReportMessage);
			} else if (oMessage.target[0] === "$" || !sResourcePath) {
				// target for the bound message cannot be resolved -> report as unbound message
				oReportMessage.message = oMessage.target + ": " + oReportMessage.message;
				aUnboundMessages.push(oReportMessage);
			} else {
				oReportMessage.target = oMessage.target;
				oReportMessage.transition = true;
				aBoundMessages.push(oReportMessage);
			}
		}
function addMessage(oMessage) {
			var oReportMessage = {
					code : oMessage.code,
					message : oMessage.message,
					technical : oMessage.technical
				};

			Object.keys(oMessage).forEach(function (sProperty) {
				if (sProperty[0] === '@') {
					if (sProperty.endsWith(".numericSeverity")) {
						oReportMessage.numericSeverity = oMessage[sProperty];
					} else if (sProperty.endsWith(".longtextUrl") && oError.requestUrl
							&& sResourcePath) {
						oReportMessage.longtextUrl =
							_Helper.makeAbsolute(oMessage[sProperty], oError.requestUrl);
					}
				}
			});

			if (typeof oMessage.target !== "string") {
				aUnboundMessages.push(oReportMessage);
			} else if (oMessage.target[0] === "$" || !sResourcePath) {
				// target for the bound message cannot be resolved -> report as unbound message
				oReportMessage.message = oMessage.target + ": " + oReportMessage.message;
				aUnboundMessages.push(oReportMessage);
			} else {
				oReportMessage.target = oMessage.target;
				oReportMessage.transition = true;
				aBoundMessages.push(oReportMessage);
			}
		}
function addMessage ( oMessage ) { var oReportMessage = { code : oMessage . code , message : oMessage . message , technical : oMessage . technical } ; Object . keys ( oMessage ) . forEach ( function ( sProperty ) { if ( sProperty [ 0 ] === '@' ) { if ( sProperty . endsWith ( ".numericSeverity" ) ) { oReportMessage . numericSeverity = oMessage [ sProperty ] ; } else if ( sProperty . endsWith ( ".longtextUrl" ) && oError . requestUrl && sResourcePath ) { oReportMessage . longtextUrl = _Helper . makeAbsolute ( oMessage [ sProperty ] , oError . requestUrl ) ; } } } ) ; if ( typeof oMessage . target !== "string" ) { aUnboundMessages . push ( oReportMessage ) ; } else if ( oMessage . target [ 0 ] === "$" || ! sResourcePath ) { // target for the bound message cannot be resolved -> report as unbound message oReportMessage . message = oMessage . target + ": " + oReportMessage . message ; aUnboundMessages . push ( oReportMessage ) ; } else { oReportMessage . target = oMessage . target ; oReportMessage . transition = true ; aBoundMessages . push ( oReportMessage ) ; } }
/*
Clones the message object taking all relevant properties, converts the annotations for
numeric severity and longtext to the corresponding properties and adds it to one of the
arrays to be reported later.
@param {object} oMessage The message
/ * Clones the message object taking all relevant properties converts the annotations for numeric severity and longtext to the corresponding properties and adds it to one of the arrays to be reported later .
Adds a message to the report