Configurations.configureInstance(factory, conf, opts,
getProperty());
} catch (Throwable t) {
throw new UserException(_loc.get("bad-thread-factory", fName), t);
} finally {
opts.removeProperty("ThreadFactory");
}
} else {
factory = Executors.defaultThreadFactory();
}
if ("cached".equals(cls)) {