if (!NamespaceUtils.useNamespacesFromClasspath(file.getProject())) {
namespaceResolvingClassloader = BeansCorePlugin.getClassLoader();
}
registry = new ScannedGenericBeanDefinitionSuppressingBeanDefinitionRegistry();
EntityResolver resolver = new XmlCatalogDelegatingEntityResolver(new BeansDtdResolver(), new PluggableSchemaResolver(namespaceResolvingClassloader));
final DocumentAccessor documentAccessor = new DocumentAccessor();
final SourceExtractor sourceExtractor = new DelegatingSourceExtractor(file.getProject());
final BeansConfigReaderEventListener eventListener = new BeansConfigReaderEventListener(this, resource, sourceExtractor, documentAccessor);
final NamespaceHandlerResolver namespaceHandlerResolver = new DelegatingNamespaceHandlerResolver(namespaceResolvingClassloader, this, documentAccessor);