protected static Project CreateProject(ProjectXmlResponse e)
        {
            var lProject = new Project();
            lProject.Account = e.account;
            lProject.CurrentVelocity = e.current_velocity;
            lProject.Id = e.id;
            lProject.InitialVelocity = e.initial_velocity;
            lProject.IsAttachmentAllowed = e.allow_attachments;
            lProject.IsBugAndChoresEstimables = e.bugs_and_chores_are_estimatable;
            lProject.IsCommitModeActive = e.commit_mode;
            lProject.IsPublic = e.@public;
            lProject.IterationLength = e.iteration_length;
            if (e.labels != null) e.labels.Split(',').ToList().ForEach(i => lProject.Labels.Add(i.Trim()));
            lProject.StartDate = e.first_iteration_start_time;
            lProject.LastActivityDate = e.last_activity_at;
            lProject.Name = e.name;
            lProject.NumberOfDoneIterationsToShow = e.number_of_done_iterations_to_show;
            lProject.PointScale = e.point_scale;
            lProject.UseHTTPS = e.use_https;
            lProject.VelocityScheme = e.velocity_scheme;
            lProject.WeekStartDay = e.week_start_day;

            foreach (var i in e.integrations)
                lProject.Integrations.Add(i);

            foreach (var m in e.memberships)
            {
                m.ProjectRef.Name = lProject.Name;
                m.ProjectRef.Id = lProject.Id;
                lProject.Memberships.Add(m);
            }

            return lProject;
        }
        protected static Project CreateProject(ProjectXmlResponse e)
        {
            var lProject = new Project();

            lProject.Account         = e.account_id;
            lProject.CurrentVelocity = e.current_velocity;
            lProject.Id = e.id;
            lProject.InitialVelocity          = e.initial_velocity;
            lProject.IsAttachmentAllowed      = e.allow_attachments;
            lProject.IsBugAndChoresEstimables = e.bugs_and_chores_are_estimatable;
            lProject.IsCommitModeActive       = e.commit_mode;
            lProject.IsPublic        = e.@public;
            lProject.IterationLength = e.iteration_length;
            // FIXME: restore
            lProject.StartDate                    = e.start_time;
            lProject.LastActivityDate             = e.last_activity_at;
            lProject.Name                         = e.name;
            lProject.NumberOfDoneIterationsToShow = e.number_of_done_iterations_to_show;
            lProject.PointScale                   = e.point_scale;
            lProject.UseHTTPS                     = e.use_https;
            lProject.VelocityScheme               = e.velocity_scheme;
            lProject.WeekStartDay                 = e.week_start_day;

            if (e.integrations != null)
            {
                foreach (var i in e.integrations)
                {
                    lProject.Integrations.Add(i);
                }
            }

            if (e.memberships != null)
            {
                foreach (var m in e.memberships)
                {
                    m.ProjectRef.Name = lProject.Name;
                    m.ProjectRef.Id   = lProject.Id;
                    lProject.Memberships.Add(m);
                }
            }

            return(lProject);
        }