internal void EnsurePlasticStatusAttributeExists()
        {
            if (FindQueries.ExistsAttributeName(
                    mRestApi,
                    mTrunkBotConfig.Repository,
                    mTrunkBotConfig.Plastic.StatusAttribute.Name))
            {
                return;
            }

            if (TrunkMergebotApi.Attributes.CreateAttribute(
                    mRestApi,
                    mTrunkBotConfig.Repository,
                    mTrunkBotConfig.Plastic.StatusAttribute.Name,
                    "Attribute automatically created by trunk-bot: " + mBotName))
            {
                return;
            }

            throw new Exception(string.Format(
                                    "Trunkbot {0}: Unable to create " +
                                    "attribute name {1} on repository {2}. " +
                                    "Check the server log.",
                                    mBotName,
                                    mTrunkBotConfig.Repository,
                                    mTrunkBotConfig.Plastic.StatusAttribute.Name));
        }