/// <summary>
        /// Builds a NewSession business exception.
        /// </summary>
        private NewSessionBusinessException BuildNewSessionBusinessException(NewSessionBusinessException.ErrorCodes errorCode, object erroneousValue)
        {
            // Build an Error business exception element.
            NewSessionBusinessException.ErrorBusinessExceptionElement errorBusinessExceptionElement = new NewSessionBusinessException.ErrorBusinessExceptionElement();
            errorBusinessExceptionElement.ErrorCode = errorCode;
            errorBusinessExceptionElement.ErroneousValue = erroneousValue;

            // Build the business exception.
            NewSessionBusinessException businessException = this.BuildNewSessionBusinessException(new NewSessionBusinessException.ErrorBusinessExceptionElement[] { errorBusinessExceptionElement });

            // Return the business exception.
            return businessException;
        }
        /// <summary>
        /// Validates the specified NewSession business request property.
        /// </summary>
        private void ValidateNewSessionRequestProperty(object businessRequestElement, string propertyName, object propertyValue, NewSessionBusinessException.ErrorCodes errorCode, List<NewSessionBusinessException.ErrorBusinessExceptionElement> errorBusinessExceptionElements)
        {
            // Check if the property is valid.
            if (ValidatorHelper.ValidateProperty(businessRequestElement, propertyName, propertyValue))
            {
                return;
            }

            // Build the Error business exception element.
            NewSessionBusinessException.ErrorBusinessExceptionElement errorBusinessExceptionElement = new NewSessionBusinessException.ErrorBusinessExceptionElement();
            errorBusinessExceptionElement.ErrorCode = errorCode;
            errorBusinessExceptionElement.ErroneousValue = propertyValue;

            // Add the Error business exception element to the list.
            errorBusinessExceptionElements.Add(errorBusinessExceptionElement);
        }