Assert.notNull(resourceLoader, getClass().getName() + ".resourceLoader cannot be null");
LOG.debug("Building SearchableCompassFactoryBean with grailsApplication [" + grailsApplication + "] and compassClassMappingXmlBuilder [" + compassClassMappingXmlBuilder + "]");
EnvironmentSearchableCompassConfigurator environment = SearchableCompassConfiguratorFactory.getEnvironmentConfigurator(compassConnection, compassSettings, grailsApplication, getBeans());
CompassXmlConfigurationSearchableCompassConfigurator compassXml = SearchableCompassConfiguratorFactory.getCompassXmlConfigurator(resourceLoader);
DefaultGrailsDomainClassMappingSearchableCompassConfigurator mappings = SearchableCompassConfiguratorFactory.getDomainClassMappingConfigurator(grailsApplication, resourceLoader, defaultFormats, defaultExcludedProperties, compassClassMappingXmlBuilder);
InferredCompassSettingCompassConfigurator inferred = new InferredCompassSettingCompassConfigurator();
CompositeSearchableCompassConfigurator configurator = new CompositeSearchableCompassConfigurator();
configurator.setSearchableCompassConfigurators(new SearchableCompassConfigurator[] {