function filterMessages(aMessages) {
			var aFilteredMessages = [];
			for (var i = 0; i < aMessages.length; i++) {
				if (!bExcludePersistent || (bExcludePersistent && !aMessages[i].persistent)) {
					aFilteredMessages.push(aMessages[i]);
				}
			}
			return aFilteredMessages;
		}
Get all messages for an entity path.

@param {string} sEntity The entity path or key
@param {boolean} bExcludePersistent Whether persistent messages should be exluded
@returns {object[]|undefined} The messages for the entity
@private