src/sap.ui.core/src/sap/ui/model/odata/_ODataMetaModelUtils.js
function (vModel, sNamespace) {
			var oSchema = null,
				aSchemas = Array.isArray(vModel)
					? vModel
					: vModel.getObject("/dataServices/schema");

			if (aSchemas) {
				aSchemas.forEach(function (o) {
					if (o.namespace === sNamespace) {
						oSchema = o;
						return false; // break
					}
				});
			}

			return oSchema;
		}
function (vModel, sNamespace) {
			var oSchema = null,
				aSchemas = Array.isArray(vModel)
					? vModel
					: vModel.getObject("/dataServices/schema");

			if (aSchemas) {
				aSchemas.forEach(function (o) {
					if (o.namespace === sNamespace) {
						oSchema = o;
						return false; // break
					}
				});
			}

			return oSchema;
		}
function ( vModel , sNamespace ) { var oSchema = null , aSchemas = Array . isArray ( vModel ) ? vModel : vModel . getObject ( "/dataServices/schema" ) ; if ( aSchemas ) { aSchemas . forEach ( function ( o ) { if ( o . namespace === sNamespace ) { oSchema = o ; return false ; // break } } ) ; } return oSchema ; }
Returns the schema with the given namespace.

@param {sap.ui.model.Model|object[]} vModel
either a model or an array of schemas
@param {string} sNamespace
a namespace, e.g. "ACME"
@returns {object}
the schema with the given namespace; <code>null</code> if no such schema is found
Returns the schema with the given namespace .