// Create a new queue
if (useHostSettings) {
// Use host specific queue settings (if defined in the host table)
try {
String hostname = id.substring(id.indexOf("://")+3);
Host host = hostDb.getByHostName(hostname);
if (host != null) {
fiq = new FetchItemQueue(conf,
host.getInt("q_mt", maxThreads),
host.getLong("q_cd", crawlDelay),
host.getLong("q_mcd", minCrawlDelay));
}
} catch (IOException e) {
LOG.error("Error while trying to access host settings", e);
}