function (sId) {
				var oItems = this.byId("tree").getItems();

				for (var i = 0; i < oItems.length; i++) {
					if (oItems[i].getTarget() === sId) {
						return oItems[i];
					}
				}
				return null;
			}
function (sId) {
				var oItems = this.byId("tree").getItems();

				for (var i = 0; i < oItems.length; i++) {
					if (oItems[i].getTarget() === sId) {
						return oItems[i];
					}
				}
				return null;
			}
function ( sId ) { var oItems = this . byId ( "tree" ) . getItems ( ) ; for ( var i = 0 ; i < oItems . length ; i ++ ) { if ( oItems [ i ] . getTarget ( ) === sId ) { return oItems [ i ] ; } } return null ; }
Scans the items aggregation of a sap.m.Tree for an item that has custom data with key="topicId" and value=sId
Note: It's important to always fetch the items before searching as they change dynamically when nodes expand/collapse
@param {string} sId
@returns {null}
@private
Scans the items aggregation of a sap . m . Tree for an item that has custom data with key = topicId and value = sId Note : It s important to always fetch the items before searching as they change dynamically when nodes expand / collapse
Returns the item with the given ID