code: function () {
  					var aPublicElements = [];
  					var mComponents = core.mObjects.component;
  					var mUIAreas = core.mUIAreas;
  
  					for (var i in mComponents) {
  						aPublicElements = aPublicElements.concat(
  							getPublicElementsInside(mComponents[i])
  						);
  					}
  
  					for (var key in mUIAreas) {
  						aPublicElements = aPublicElements.concat(
  							getPublicElementsInside(mUIAreas[key])
  						);
  					}
  
  					return aPublicElements;
  				}
docs: Returns all public elements, i.e. elements that are part of public API
  aggregations
  @public
  @function
  @returns {Array} Array of matched elements
  @alias sap.ui.support.ExecutionScope.getPublicElements