code: function checkEnum(oEnum, sValue, sPropertyName) {
  		var aValidValues = [];
  		for (var sKey in oEnum) {
  			if (oEnum.hasOwnProperty(sKey)) {
  				if (oEnum[sKey] === sValue) {
  					return;
  				}
  				aValidValues.push(oEnum[sKey]);
  			}
  		}
  		throw new Error("Unsupported Enumeration value for " + sPropertyName + ", valid values are: " + aValidValues.join(", "));
  	}
docs: Checks if a value exists within an enumerable list.
  
  @param {object} oEnum Enumeration object with values for validation
  @param {string} sValue Value to check against enumerable list
  @param {string} sPropertyName Name of the property which is checked
  @throws {Error} If the value could not be found, an error is thrown