/**
   * read in a single collection element
   *
   * @param config
   * @param el
   * @throws SearchException
   */
  private final void readCollection(Config config, Element el) throws SearchException {
    SearchCollection sc;
    // try {
    // Collection
    DateTime last =
        engine
            .getCastUtil()
            .toDateTime(el.getAttribute("lastUpdate"), engine.getThreadTimeZone(), null);
    if (last == null) last = engine.getCreationUtil().now();
    DateTime cre =
        engine
            .getCastUtil()
            .toDateTime(el.getAttribute("created"), engine.getThreadTimeZone(), null);
    if (cre == null) cre = engine.getCreationUtil().now();
    ResourceProvider frp = engine.getResourceUtil().getFileResourceProvider();
    sc =
        _readCollection(
            el.getAttribute("name"),
            frp.getResource(el.getAttribute("path")),
            el.getAttribute("language"),
            last,
            cre);
    collections.setEL((sc.getName()), sc);

    // Indexes
    NodeList children = el.getChildNodes();
    int len = children.getLength();
    for (int i = 0; i < len; i++) {
      Node n = children.item(i);
      if (n instanceof Element && n.getNodeName().equals("index")) {
        readIndex(sc, (Element) n);
      }
    }
    /*}
    catch (PageException e) {
        throw new SearchException(e);
    }*/
  }