/// <summary>
        /// Binds the object of the specified type using the given prefix.
        /// but only using the entries from the collection specified on the <paramref name="from"/>
        /// </summary>
        /// <param name="from">From.</param>
        /// <param name="targetType">Type of the target.</param>
        /// <param name="prefix">The prefix.</param>
        /// <param name="excludedProperties">The excluded properties, comma separated list.</param>
        /// <param name="allowedProperties">The allowed properties, comma separated list.</param>
        /// <returns></returns>
        protected object BindObject(ParamStore from, Type targetType, String prefix, String excludedProperties,
                                    String allowedProperties)
        {
            var node = Request.ObtainParamsNode(from);

            var instance = binder.BindObject(targetType, prefix, excludedProperties, allowedProperties, node);

            boundInstances[instance] = binder.ErrorList;
            PopulateValidatorErrorSummary(instance, binder.GetValidationSummary(instance));

            return(instance);
        }
 /// <summary>
 /// Populates the validator error summary.
 /// </summary>
 /// <param name="validatorExposer">The validator exposer.</param>
 /// <param name="binder">The binder.</param>
 /// <param name="instance">The instance.</param>
 protected virtual void PopulateValidatorErrorSummary(IValidatorAccessor validatorExposer, IDataBinder binder, object instance)
 {
     if (validate)
     {
         validatorExposer.PopulateValidatorErrorSummary(instance, binder.GetValidationSummary(instance));
     }
 }
		/// <summary>
		/// Populates the validator error summary.
		/// </summary>
		/// <param name="validatorExposer">The validator exposer.</param>
		/// <param name="binder">The binder.</param>
		/// <param name="instance">The instance.</param>
		protected virtual void PopulateValidatorErrorSummary(IValidatorAccessor validatorExposer, IDataBinder binder, object instance)
		{
			if (validate)
			{
				validatorExposer.PopulateValidatorErrorSummary(instance, binder.GetValidationSummary(instance));
			}
		}