code: function (aContextObjects) {
  			var aDesignTimeContextIdsByUrl = this._getContextIdsFromUrl();
  
  			if (aDesignTimeContextIdsByUrl.length === 0) {
  				// [default: runtime] use runtime contexts
  				return this._getContextParametersFromAPI(aContextObjects)
  					.then(this._getActiveContextsByAPIParameters.bind(this, aContextObjects));
  			} else {
  				// [designtime] use url parameters to determine the current active context(s)
  				return Promise.resolve(this._getActiveContextsByUrlParameters(aContextObjects, aDesignTimeContextIdsByUrl));
  			}
  		}
docs: Helper to filter passed context objects.
  This method loops over each context object and check for its current validity
  
  @param {sap.ui.fl.Context[]} aContextObjects - context objects within the application
  @returns {Promise|string[]} aActiveContexts - Promise returning or direct build array containing ids of context objects