src/sap.ui.core/src/sap/ui/core/cache/LRUPersistentCache.js
function cloneMetadata(source) {
			var backupMetadata = initMetadata(source.__ui5version);
			for (var index in source.__byIndex__) {
				backupMetadata.__byIndex__[index] = source.__byIndex__[index];
			}
			for (var key in source.__byKey__) {
				backupMetadata.__byKey__[key] = source.__byKey__[key];
			}
			return backupMetadata;
		}
function cloneMetadata(source) {
			var backupMetadata = initMetadata(source.__ui5version);
			for (var index in source.__byIndex__) {
				backupMetadata.__byIndex__[index] = source.__byIndex__[index];
			}
			for (var key in source.__byKey__) {
				backupMetadata.__byKey__[key] = source.__byKey__[key];
			}
			return backupMetadata;
		}
function cloneMetadata ( source ) { var backupMetadata = initMetadata ( source . __ui5version ) ; for ( var index in source . __byIndex__ ) { backupMetadata . __byIndex__ [ index ] = source . __byIndex__ [ index ] ; } for ( var key in source . __byKey__ ) { backupMetadata . __byKey__ [ key ] = source . __byKey__ [ key ] ; } return backupMetadata ; }
Clones a given metadata instance
@param source the instance to clone
@returns {*} cloned metadata
Clones a given metadata instance