code: function() {
  		// "this" is the prototype now when called with apply()
  
  		// make sure the version is set correctly, depending on the used ODataModel
  		var iModelVersion = AnalyticalVersionInfo.getVersion(this);
  
  		// ensure only ODataModel are enhanced which have not been enhanced yet
  		if (iModelVersion === AnalyticalVersionInfo.NONE || this.getAnalyticalExtensions) {
  			return;
  		}
  
  		// Keep a reference on the bindList and bindTree function before applying the Adapter-Functions,
  		// this way the old functions do not get lost and the correct one is used for "prototype" calls.
  		// Previously only the ODataModel V1 prototype functions would get called
  		this._mPreadapterFunctions = {
  			bindList: this.bindList,
  			bindTree: this.bindTree
  		};
  
  		// apply the methods of the adapters prototype to the ODataModelAdapter instance
  		for (var fn in ODataModelAdapter.prototype) {
  			if (ODataModelAdapter.prototype.hasOwnProperty(fn)) {
  				this[fn] = ODataModelAdapter.prototype[fn];
  			}
  		}
  
  		//initialise the Analytical Extension during the metadata loaded Event of the v2.ODataModel
  		/*if (iModelVersion === AnalyticalVersionInfo.V2 && !(this.oMetadata && this.oMetadata.isLoaded())) {
  			var that = this;
  			this.attachMetadataLoaded(function () {
  				Log.info("ODataModelAdapter: Running on ODataModel V2, Metadata was loaded; initialising analytics model.");
  				that.getAnalyticalExtensions();
  			});
  		}*/
  
  		// disable the count support (inline count is required for AnalyticalBinding)
  		if (iModelVersion === AnalyticalVersionInfo.V1 && this.isCountSupported()) {
  			Log.info("ODataModelAdapter: switched ODataModel to use inlinecount (mandatory for the AnalyticalBinding)");
  			this.setCountSupported(false);
  		}
  
  	}
docs: If called on an instance of an (v1/v2) ODataModel it will enrich it with analytics capabilities.
  
  @alias sap.ui.model.analytics.ODataModelAdapter
  @function
  @experimental This module is only for experimental use!
  @protected