ConfigurationPointsImpl cps = new ConfigurationPointsImpl(classLoader);
SpringPluggableSchemas sps = new SpringPluggableSchemas(resourceLoader);
// default resolvers
EntityResolver defaultEntityResolver = new ResourceEntityResolver(resourceLoader);
NamespaceHandlerResolver defaultNamespaceHanderResolver = new DefaultNamespaceHandlerResolver(classLoader);
// new resolvers
EntityResolver entityResolver = new SchemaEntityResolver(defaultEntityResolver, cps, sps);
NamespaceHandlerResolver namespaceHandlerResolver = new ConfigurationPointNamespaceHandlerResolver(cps,
defaultNamespaceHanderResolver);