/// <summary>Adds any embedded resource streams which pass the <paramref name="filter"/>.</summary>
        /// <param name="assembly">An assembly containing embedded mapping documents.</param>
        /// <param name="filter">A custom filter.</param>
        public void Add(Assembly assembly, IAssemblyResourceFilter filter)
        {
            if (assembly == null)
            {
                throw new ArgumentNullException("assembly");
            }

            if (filter == null)
            {
                throw new ArgumentNullException("filter");
            }

            foreach (string resourceName in assembly.GetManifestResourceNames())
            {
                if (defaultFilter.ShouldParse(resourceName))
                {
                    Add(assembly, resourceName);
                }
            }
        }