}
ClassLoader classLoader = resourceLoader.getClassLoader();
// schema providers
SpringExtSchemaSet schemas = new SpringExtSchemaSet(classLoader);
// default resolvers
EntityResolver defaultEntityResolver = new ResourceEntityResolver(resourceLoader);
NamespaceHandlerResolver defaultNamespaceHandlerResolver = new DefaultNamespaceHandlerResolver(classLoader);
// new resolvers
EntityResolver entityResolver = new SchemaEntityResolver(defaultEntityResolver, schemas);
NamespaceHandlerResolver namespaceHandlerResolver = new ConfigurationPointNamespaceHandlerResolver(schemas.getConfigurationPoints(), defaultNamespaceHandlerResolver);
reader.setEntityResolver(entityResolver);
reader.setNamespaceHandlerResolver(namespaceHandlerResolver);
}