/**
* {@inheritDoc}
*/
public void init(Element config, QueryHandlerContext context, NamespaceMappings nsMappings) throws Exception {
ism = context.getItemStateManager();
NameResolver nameResolver = new ParsingNameResolver(NameFactoryImpl.getInstance(),
context.getNamespaceRegistry());
PathResolver pathResolver = new ParsingPathResolver(PathFactoryImpl.getInstance(),
nameResolver);
hmgr = new HierarchyManagerImpl(context.getRootId(), ism, pathResolver);
NamespaceResolver nsResolver = new AdditionalNamespaceResolver(getNamespaces(config));
resolver = new ParsingNameResolver(NameFactoryImpl.getInstance(), nsResolver);
NodeTypeRegistry ntReg = context.getNodeTypeRegistry();
Name[] ntNames = ntReg.getRegisteredNodeTypes();
List idxAggregates = new ArrayList();
NodeList indexingConfigs = config.getChildNodes();