public void setup(SourceResolver resolver, Map objectModel, String src, Parameters par)
throws ProcessingException, SAXException, IOException {
this.base = par.getParameter("base", this.default_base);
if (this.base == null)
throw new ProcessingException("Required base parameter is missing. Syntax is: xmldb:xindice:///db/collection");
try {
this.collection = DatabaseManager.getCollection(base);
} catch (XMLDBException e) {
throw new ProcessingException("Could not get collection " + base + ": " + e.errorCode, e);
}
if(this.collection == null)
throw new ResourceNotFoundException("Collection " + base + " does not exist");
}