src/sap.ui.fl/src/sap/ui/fl/ControlPersonalizationAPI.js
function(oControl) {
			var oAppComponent = Utils.getAppComponentForControl(oControl);
			var oFlexController = FlexControllerFactory.createForControl(oAppComponent);
			var oRootControl = oAppComponent.getRootControl();
			var oView = Utils.getViewForControl(oControl);
			var oVariantModel = oAppComponent.getModel("$FlexVariants");

			var mParams = {
				rootControl : oRootControl,
				view : oView,
				variantModel : oVariantModel,
				variantManagement : {},
				flexController: oFlexController
			};
			var oVMControl;
			var aForControlTypes;

			jQuery.makeArray(mParams.rootControl.$().find(".sapUiFlVarMngmt")).map(function(oVariantManagementNode) {
				oVMControl = sap.ui.getCore().byId(oVariantManagementNode.id);
				if (oVMControl.getMetadata().getName() === "sap.ui.fl.variants.VariantManagement") {
					aForControlTypes = oVMControl.getFor();
					aForControlTypes.forEach(function(sControlType) {
						mParams.variantManagement[sControlType] = mParams.variantModel.getLocalId(oVariantManagementNode.id, oAppComponent);
					});
				}
			});

			return mParams;
		}
function(oControl) {
			var oAppComponent = Utils.getAppComponentForControl(oControl);
			var oFlexController = FlexControllerFactory.createForControl(oAppComponent);
			var oRootControl = oAppComponent.getRootControl();
			var oView = Utils.getViewForControl(oControl);
			var oVariantModel = oAppComponent.getModel("$FlexVariants");

			var mParams = {
				rootControl : oRootControl,
				view : oView,
				variantModel : oVariantModel,
				variantManagement : {},
				flexController: oFlexController
			};
			var oVMControl;
			var aForControlTypes;

			jQuery.makeArray(mParams.rootControl.$().find(".sapUiFlVarMngmt")).map(function(oVariantManagementNode) {
				oVMControl = sap.ui.getCore().byId(oVariantManagementNode.id);
				if (oVMControl.getMetadata().getName() === "sap.ui.fl.variants.VariantManagement") {
					aForControlTypes = oVMControl.getFor();
					aForControlTypes.forEach(function(sControlType) {
						mParams.variantManagement[sControlType] = mParams.variantModel.getLocalId(oVariantManagementNode.id, oAppComponent);
					});
				}
			});

			return mParams;
		}
function ( oControl ) { var oAppComponent = Utils . getAppComponentForControl ( oControl ) ; var oFlexController = FlexControllerFactory . createForControl ( oAppComponent ) ; var oRootControl = oAppComponent . getRootControl ( ) ; var oView = Utils . getViewForControl ( oControl ) ; var oVariantModel = oAppComponent . getModel ( "$FlexVariants" ) ; var mParams = { rootControl : oRootControl , view : oView , variantModel : oVariantModel , variantManagement : { } , flexController : oFlexController } ; var oVMControl ; var aForControlTypes ; jQuery . makeArray ( mParams . rootControl . $ ( ) . find ( ".sapUiFlVarMngmt" ) ) . map ( function ( oVariantManagementNode ) { oVMControl = sap . ui . getCore ( ) . byId ( oVariantManagementNode . id ) ; if ( oVMControl . getMetadata ( ) . getName ( ) === "sap.ui.fl.variants.VariantManagement" ) { aForControlTypes = oVMControl . getFor ( ) ; aForControlTypes . forEach ( function ( sControlType ) { mParams . variantManagement [ sControlType ] = mParams . variantModel . getLocalId ( oVariantManagementNode . id , oAppComponent ) ; } ) ; } } ) ; return mParams ; }
Returns a map of parameters used in public functions.

@param {sap.ui.core.Element} oControl - The control for which a variant management control has to be evaluated
@returns {object} Returns a map with needed parameters
@private
Returns a map of parameters used in public functions .