function collectBindingPaths(oElement, oModel){
		var mBindingsCollection = {
			bindingPaths: [],
			bindingContextPaths: []
		};
		var sAggregationName = oElement.sParentAggregationName;
		var oParent = oElement.getParent();
		var aBindings = getBindings(oElement, oModel);

		if (oParent) {
			var oDefaultAggregation = oParent.getMetadata().getAggregation();

			if (oDefaultAggregation) {
				var iPositionOfInvisibleElement = ElementUtil.getAggregation(oParent, sAggregationName).indexOf(oElement);
				var sParentDefaultAggregationName = oDefaultAggregation.name;
				var oBinding = oParent.getBindingInfo(sParentDefaultAggregationName);
				var oTemplate = oBinding && oBinding.template;

				if (oTemplate) {
					var oTemplateDefaultAggregation = oTemplate.getMetadata().getAggregation();

					if (oTemplateDefaultAggregation) {
						var sTemplateDefaultAggregationName = oTemplateDefaultAggregation.name;
						var oTemplateElement = ElementUtil.getAggregation(oTemplate, sTemplateDefaultAggregationName)[iPositionOfInvisibleElement];
						aBindings = aBindings.concat(getBindings(oTemplateElement, null, true));
					}
				}
			}
		}

		for (var i = 0, l = aBindings.length; i < l; i++) {
			if (aBindings[i].getPath) {
				var sBindingPath = aBindings[i].getPath();
				if (sBindingPath &&	mBindingsCollection.bindingPaths.indexOf(sBindingPath) === -1){
					mBindingsCollection.bindingPaths.push(sBindingPath);
				}
			}
			if (aBindings[i].getContext && aBindings[i].getContext() && aBindings[i].getContext().getPath) {
				var sBindingContextPath = aBindings[i].getContext().getPath();
				if (sBindingContextPath && mBindingsCollection.bindingContextPaths.indexOf(sBindingContextPath) === -1){
					mBindingsCollection.bindingContextPaths.push(sBindingContextPath);
				}
			}
			if (isPlainObject(aBindings[i])){
				if (mBindingsCollection.bindingPaths.indexOf(aBindings[i].parts[0].path) === -1){
					mBindingsCollection.bindingPaths.push(aBindings[i].parts[0].path);
				}
			}
		}
		return mBindingsCollection;
	}
function collectBindingPaths(oElement, oModel){
		var mBindingsCollection = {
			bindingPaths: [],
			bindingContextPaths: []
		};
		var sAggregationName = oElement.sParentAggregationName;
		var oParent = oElement.getParent();
		var aBindings = getBindings(oElement, oModel);

		if (oParent) {
			var oDefaultAggregation = oParent.getMetadata().getAggregation();

			if (oDefaultAggregation) {
				var iPositionOfInvisibleElement = ElementUtil.getAggregation(oParent, sAggregationName).indexOf(oElement);
				var sParentDefaultAggregationName = oDefaultAggregation.name;
				var oBinding = oParent.getBindingInfo(sParentDefaultAggregationName);
				var oTemplate = oBinding && oBinding.template;

				if (oTemplate) {
					var oTemplateDefaultAggregation = oTemplate.getMetadata().getAggregation();

					if (oTemplateDefaultAggregation) {
						var sTemplateDefaultAggregationName = oTemplateDefaultAggregation.name;
						var oTemplateElement = ElementUtil.getAggregation(oTemplate, sTemplateDefaultAggregationName)[iPositionOfInvisibleElement];
						aBindings = aBindings.concat(getBindings(oTemplateElement, null, true));
					}
				}
			}
		}

		for (var i = 0, l = aBindings.length; i < l; i++) {
			if (aBindings[i].getPath) {
				var sBindingPath = aBindings[i].getPath();
				if (sBindingPath &&	mBindingsCollection.bindingPaths.indexOf(sBindingPath) === -1){
					mBindingsCollection.bindingPaths.push(sBindingPath);
				}
			}
			if (aBindings[i].getContext && aBindings[i].getContext() && aBindings[i].getContext().getPath) {
				var sBindingContextPath = aBindings[i].getContext().getPath();
				if (sBindingContextPath && mBindingsCollection.bindingContextPaths.indexOf(sBindingContextPath) === -1){
					mBindingsCollection.bindingContextPaths.push(sBindingContextPath);
				}
			}
			if (isPlainObject(aBindings[i])){
				if (mBindingsCollection.bindingPaths.indexOf(aBindings[i].parts[0].path) === -1){
					mBindingsCollection.bindingPaths.push(aBindings[i].parts[0].path);
				}
			}
		}
		return mBindingsCollection;
	}
function collectBindingPaths ( oElement , oModel ) { var mBindingsCollection = { bindingPaths : [ ] , bindingContextPaths : [ ] } ; var sAggregationName = oElement . sParentAggregationName ; var oParent = oElement . getParent ( ) ; var aBindings = getBindings ( oElement , oModel ) ; if ( oParent ) { var oDefaultAggregation = oParent . getMetadata ( ) . getAggregation ( ) ; if ( oDefaultAggregation ) { var iPositionOfInvisibleElement = ElementUtil . getAggregation ( oParent , sAggregationName ) . indexOf ( oElement ) ; var sParentDefaultAggregationName = oDefaultAggregation . name ; var oBinding = oParent . getBindingInfo ( sParentDefaultAggregationName ) ; var oTemplate = oBinding && oBinding . template ; if ( oTemplate ) { var oTemplateDefaultAggregation = oTemplate . getMetadata ( ) . getAggregation ( ) ; if ( oTemplateDefaultAggregation ) { var sTemplateDefaultAggregationName = oTemplateDefaultAggregation . name ; var oTemplateElement = ElementUtil . getAggregation ( oTemplate , sTemplateDefaultAggregationName ) [ iPositionOfInvisibleElement ] ; aBindings = aBindings . concat ( getBindings ( oTemplateElement , null , true ) ) ; } } } } for ( var i = 0 , l = aBindings . length ; i < l ; i ++ ) { if ( aBindings [ i ] . getPath ) { var sBindingPath = aBindings [ i ] . getPath ( ) ; if ( sBindingPath && mBindingsCollection . bindingPaths . indexOf ( sBindingPath ) === - 1 ) { mBindingsCollection . bindingPaths . push ( sBindingPath ) ; } } if ( aBindings [ i ] . getContext && aBindings [ i ] . getContext ( ) && aBindings [ i ] . getContext ( ) . getPath ) { var sBindingContextPath = aBindings [ i ] . getContext ( ) . getPath ( ) ; if ( sBindingContextPath && mBindingsCollection . bindingContextPaths . indexOf ( sBindingContextPath ) === - 1 ) { mBindingsCollection . bindingContextPaths . push ( sBindingContextPath ) ; } } if ( isPlainObject ( aBindings [ i ] ) ) { if ( mBindingsCollection . bindingPaths . indexOf ( aBindings [ i ] . parts [ 0 ] . path ) === - 1 ) { mBindingsCollection . bindingPaths . push ( aBindings [ i ] . parts [ 0 ] . path ) ; } } } return mBindingsCollection ; }
Get all relevant binding paths and binding context paths for the element (from all properties)

@param {sap.ui.core.Control} oElement - Starting point of the search
@param {sap.ui.model.Model} oModel - Model for filtering irrelevant binding paths
@returns {{bindingPaths: Array, bindingContextPaths: Array}}} - returns with all relevant bindingPaths and all bindingContextPaths for all properties of the element

@private
Get all relevant binding paths and binding context paths for the element ( from all properties )
Collect all binding paths for the given element