function (oEntitySet, oNavigationProperty) {
			var sCreatable = oNavigationProperty["sap:creatable"],
				sCreatablePath = oNavigationProperty["sap:creatable-path"],
				oInsertRestrictions,
				oNonInsertable = {"NavigationPropertyPath" : oNavigationProperty.name},
				aNonInsertableNavigationProperties;

			if (sCreatable && sCreatablePath) {
				// inconsistent service if both v2 annotations are set
				Log.warning("Inconsistent service",
					"Use either 'sap:creatable' or 'sap:creatable-path' at navigation property "
						+ "'" + oEntitySet.entityType + "/" + oNavigationProperty.name + "'",
					sLoggingModule);
				sCreatable = "false";
				sCreatablePath = undefined;
			}
			if (sCreatable === "false" || sCreatablePath) {
				oInsertRestrictions
					= oEntitySet["Org.OData.Capabilities.V1.InsertRestrictions"]
					= oEntitySet["Org.OData.Capabilities.V1.InsertRestrictions"] || {};
				aNonInsertableNavigationProperties
					= oInsertRestrictions["NonInsertableNavigationProperties"]
					= oInsertRestrictions["NonInsertableNavigationProperties"] || [];
				if (sCreatablePath) {
					oNonInsertable = {
						"If" : [{
							"Not" : {
								"Path" : sCreatablePath
							}
						}, oNonInsertable]
					};
				}
				aNonInsertableNavigationProperties.push(oNonInsertable);
			}
		}
function (oEntitySet, oNavigationProperty) {
			var sCreatable = oNavigationProperty["sap:creatable"],
				sCreatablePath = oNavigationProperty["sap:creatable-path"],
				oInsertRestrictions,
				oNonInsertable = {"NavigationPropertyPath" : oNavigationProperty.name},
				aNonInsertableNavigationProperties;

			if (sCreatable && sCreatablePath) {
				// inconsistent service if both v2 annotations are set
				Log.warning("Inconsistent service",
					"Use either 'sap:creatable' or 'sap:creatable-path' at navigation property "
						+ "'" + oEntitySet.entityType + "/" + oNavigationProperty.name + "'",
					sLoggingModule);
				sCreatable = "false";
				sCreatablePath = undefined;
			}
			if (sCreatable === "false" || sCreatablePath) {
				oInsertRestrictions
					= oEntitySet["Org.OData.Capabilities.V1.InsertRestrictions"]
					= oEntitySet["Org.OData.Capabilities.V1.InsertRestrictions"] || {};
				aNonInsertableNavigationProperties
					= oInsertRestrictions["NonInsertableNavigationProperties"]
					= oInsertRestrictions["NonInsertableNavigationProperties"] || [];
				if (sCreatablePath) {
					oNonInsertable = {
						"If" : [{
							"Not" : {
								"Path" : sCreatablePath
							}
						}, oNonInsertable]
					};
				}
				aNonInsertableNavigationProperties.push(oNonInsertable);
			}
		}
function ( oEntitySet , oNavigationProperty ) { var sCreatable = oNavigationProperty [ "sap:creatable" ] , sCreatablePath = oNavigationProperty [ "sap:creatable-path" ] , oInsertRestrictions , oNonInsertable = { "NavigationPropertyPath" : oNavigationProperty . name } , aNonInsertableNavigationProperties ; if ( sCreatable && sCreatablePath ) { // inconsistent service if both v2 annotations are set Log . warning ( "Inconsistent service" , "Use either 'sap:creatable' or 'sap:creatable-path' at navigation property " + "'" + oEntitySet . entityType + "/" + oNavigationProperty . name + "'" , sLoggingModule ) ; sCreatable = "false" ; sCreatablePath = undefined ; } if ( sCreatable === "false" || sCreatablePath ) { oInsertRestrictions = oEntitySet [ "Org.OData.Capabilities.V1.InsertRestrictions" ] = oEntitySet [ "Org.OData.Capabilities.V1.InsertRestrictions" ] || { } ; aNonInsertableNavigationProperties = oInsertRestrictions [ "NonInsertableNavigationProperties" ] = oInsertRestrictions [ "NonInsertableNavigationProperties" ] || [ ] ; if ( sCreatablePath ) { oNonInsertable = { "If" : [ { "Not" : { "Path" : sCreatablePath } } , oNonInsertable ] } ; } aNonInsertableNavigationProperties . push ( oNonInsertable ) ; } }
Convert sap:creatable and sap:creatable-path at navigation property to V4 annotation
'Org.OData.Capabilities.V1.InsertRestrictions/NonInsertableNavigationProperties' at
the given entity set.
If both V2 annotations 'sap:creatable' and 'sap:creatable-path' are given the service is
broken and the navigation property is added as non-insertable navigation property.
If neither 'sap:creatable' nor 'sap:creatable-path' are given this function does
nothing.

@param {object} oEntitySet
The entity set
@param {object} oNavigationProperty
The navigation property
Convert sap : creatable and sap : creatable - path at navigation property to V4 annotation Org . OData . Capabilities . V1 . InsertRestrictions / NonInsertableNavigationProperties at the given entity set . If both V2 annotations sap : creatable and sap : creatable - path are given the service is broken and the navigation property is added as non - insertable navigation property . If neither sap : creatable nor sap : creatable - path are given this function does nothing .
Checks if the navigation property is inconsistent with v2 annotations