private static List<Class<?>> toClass(List<String> classNames)
            throws ClassNotFoundException {
        List<Class<?>> ret = new ArrayList<Class<?>>(classNames.size());
        ClassLoader cl = TemplatePrecompiler.class.getClassLoader();
        for (String className : classNames) {
            Class<?> c = cl.loadClass(className);
            ret.add(c);
        }
        return ret;
    }