public void CreateGlobal(string name)
        {
            const string CREATE =
                @"<AUTHORIZATION><AUTHORIZATIONPACKET action=""addnew"" name=""{0}""/></AUTHORIZATION>";
            var answer = Project.ExecuteRQL(CREATE.RQLFormat(name));

            CheckAnswer(name, answer);
        }
        private void CreateDetail(string elementtype, IRedDotObject obj, string name, AuthorizationType type)
        {
            const string CREATE =
                @"<AUTHORIZATION><{0} guid=""{1}><AUTHORIZATIONPACKET action=""addnew"" name=""{2}"" guid="" type=""{3}""/></{0}></AUTHORIZATION>";

            string query = CREATE.RQLFormat(elementtype, obj, name, (int)type);

            var answer = Project.ExecuteRQL(query);

            CheckAnswer(name, answer);
            Standard.InvalidateCache();
        }