}
protected DefaultEvaluatorFactory(CollQueryTemplates templates, ClassLoader classLoader) {
this.templates = templates;
if (classLoader instanceof URLClassLoader) {
this.factory = new JDKEvaluatorFactory((URLClassLoader) classLoader);
} else {
// for OSGi compatibility
this.factory = new ECJEvaluatorFactory(classLoader);
}
}