internal static IRMConfiguration Read(IConfigurationSession session, out bool inMemory)
        {
            inMemory = false;
            IRMConfiguration[] array = session.Find <IRMConfiguration>(null, QueryScope.SubTree, null, null, 1);
            if (array != null && array.Length != 0 && array[0] != null)
            {
                return(array[0]);
            }
            inMemory = true;
            IRMConfiguration irmconfiguration = new IRMConfiguration();

            irmconfiguration.SetId(session, "ControlPoint Config");
            irmconfiguration.OrganizationId = session.SessionSettings.CurrentOrganizationId;
            if (session.SessionSettings.CurrentOrganizationId != OrganizationId.ForestWideOrgId)
            {
                irmconfiguration.ExternalLicensingEnabled = true;
            }
            return(irmconfiguration);
        }
        internal static IRMConfiguration Read(IConfigurationSession session)
        {
            bool flag;

            return(IRMConfiguration.Read(session, out flag));
        }