protected static IClassDef GetCustomClassDef()
        {
            ClassDef.ClassDefs.Clear();
            ContactPersonTestBO.LoadClassDef_NoOrganisationRelationship();
            IClassDef classDef        = OrganisationTestBO.LoadDefaultClassDef();
            IUIGrid   originalGridDef = classDef.UIDefCol["default"].UIGrid;
            UIGrid    extraGridDef    = ((UIGrid)originalGridDef).Clone();

            extraGridDef.Remove(extraGridDef[extraGridDef.Count - 1]);
            UIDef extraUIDef     = new UIDef(CUSTOM_UIDEF_NAME, new UIForm(), extraGridDef);
            UIDef gridWithNoForm = new UIDef(GRID_WITHNOFORM, null, extraGridDef);

            classDef.UIDefCol.Add(extraUIDef);
            return(classDef);
        }