function wrapMethod(bBefore) {
				(function(fnCust, fnOri, oContext, bBefore){
					oOrigDef[sMemberName] = function() {
						if (bBefore) {
							fnCust.apply(oContext, arguments);
							return fnOri.apply(oOrigDef, arguments);
						} else {
							fnOri.apply(oOrigDef, arguments);
							return fnCust.apply(oContext, arguments);
						}
					};
				})(fnCust, fnOri, oContext, bBefore);
			}
Override a method depending on the overrideExecution strategy

@param {string} sMemberName The name of the function/member
@param {sap.ui.core.mvc.Controller|sap.ui.core.mvc.ControllerExtension} oOrigDef The controller/extension to extend
@param {sap.ui.core.mvc.ControllerExtension|object} oCustomDef The controller extension
@param {object} oContext Used as context for the extended function
@param {sap.ui.core.mvc.OverrideExecution} sOverrideExecution The override strategy
@private