// Path: src/main/java/xdb/control/Query.java
// public interface Query {
// 
//     /**
//      * Execute the query.
//      * 
//      * @param doc
//      *            The document being queried.
//      * @param params
//      *            Query parameters.
//      * @return The list of nodes in the results.
//      * @throws xdb.control.QueryException
//      *             For errors.
//      */
//     public List<Node> query(Document doc, Map<String, String[]> params) throws QueryException;
// }


import org.w3c.dom.Element;
import xdb.control.Query;
package xdb.query;



/**
 * Class for initializing queries from their configuration.
 */
public final class QueryInit {

    private QueryInit() {
    }

    /**
     * Init the query from its configuration.
     * 
     * @param configElement
     *            The configuration element.
     * @param fileName
     *            The file name.
     * @return The query.
     */
// Path: src/main/java/xdb/control/Query.java
// public interface Query {
// 
//     /**
//      * Execute the query.
//      * 
//      * @param doc
//      *            The document being queried.
//      * @param params
//      *            Query parameters.
//      * @return The list of nodes in the results.
//      * @throws xdb.control.QueryException
//      *             For errors.
//      */
//     public List<Node> query(Document doc, Map<String, String[]> params) throws QueryException;
// }


// Path: src/main/java/xdb/query/QueryInit.java
import org.w3c.dom.Element;
import xdb.control.Query;

package xdb.query;



/**
 * Class for initializing queries from their configuration.
 */
public final class QueryInit {

    private QueryInit() {
    }

    /**
     * Init the query from its configuration.
     * 
     * @param configElement
     *            The configuration element.
     * @param fileName
     *            The file name.
     * @return The query.
     */
    public static Query init(Element configElement, String fileName) {