/// <summary>
        /// Initializes the object based on the current expressions using the given object as
        /// context.
        /// </summary>
        /// <param name="context">The context for the expressions.</param>
        /// <returns>false if the initialization is unsuccessfull; otherwise false.</returns>
        private bool InitializeObject(Project context)
        {
            try
            {
                startDate = GetDate(context as Project, StartDateExpression.Expr.GetValue(0, 0).ToString()).Date;
            }
            catch (Exception ex)
            {
                context.AddError("Start date is not valid. Details: " + ex.Message);
                return(true);
            }

            try
            {
                endDate = GetDate(context as Project, EndDateExpression.Expr.GetValue(0, 0).ToString()).Date;
            }
            catch (Exception ex)
            {
                context.AddError("End date is not valid. Details: " + ex.Message);
                return(true);
            }

            try
            {
                frequency = GetDateFrequency((Project)context, FrequencyExpression);
            }
            catch (Exception ex)
            {
                context.AddError("Frequency is not valid. Details: " + ex.Message);
                return(true);
            }

            try
            {
                skipPeriodsParsed = (int)SkipPeriods.V();
            }
            catch (Exception ex)
            {
                context.AddError("The number of periods to skip is not valid. Details: " + ex.Message);
                return(true);
            }

            try
            {
                double v = SkipPeriodsArray?.V() ?? 0.0f;
                skipPeriodsArrayParsed = (int)v;
            }
            catch (Exception ex)
            {
                context.AddError("The number of periods to skip is not valid. Details: " + ex.Message);
                return(true);
            }

            return(false);
        }