String className = getAttribute(
element, CLASS_ATTRIBUTE, DEFAULT_QUERY_HANDLER);
BeanConfig config = new BeanConfig(
className, parseParameters(element));
QueryHandler handler =
config.newInstance(QueryHandler.class);
try {
handler.init(fs, context);
return handler;
} catch (IOException e) {
throw new RepositoryException(
"Unable to initialize query handler: " + handler, e);
}