public DefaultOpenPermitAdapterFilter(IOpenPermitAdapter adapter)
        {
            if (adapter == null)
            {
                throw new ArgumentNullException("factory can not be null.");
            }

            this.adapter = adapter;
        }
        public DefaultOpenPermitAdapterFilter(IOpenPermitAdapter adapter)
        {
            if (adapter == null)
            {
                throw new ArgumentNullException("factory can not be null.");
            }

            this.adapter = adapter;
        }