public static bool IsValidParameter(string value, string propertyName, IDictionary <string, string> parameters, string fileName)
        {
            if (ImageBuilderUtility.IsParameter(value))
            {
                string parameterName = value.Substring(1, value.Length - 2);
                if (!parameters.ContainsKey(parameterName))
                {
                    ImageBuilderUtility.TraceAndThrowValidationErrorWithFileName(
                        TraceType,
                        fileName,
                        StringResources.ImageBuilderError_UndefinedParameter,
                        propertyName,
                        parameterName);
                }

                return(true);
            }
            else
            {
                return(false);
            }
        }
 private bool ShouldValidate(string value)
 {
     return((!ImageBuilderUtility.IsParameter(value)) || (this.parametersAlreadyApplied));
 }