}
@Override
protected Class<?> findClass(String name) throws ClassNotFoundException {
ClassLoaderCache cache = ClassLoaderCache.getInstance();
CacheEntry cacheEntry = cache.get(name);
if (cacheEntry != null && cacheEntry.getLastModified() > lastModified) {
log.debug("Return class '{}' from cache", name);
return cacheEntry.getClazz();
}
Class<?> clazz = createExecutorClass(name);
cache.put(name, clazz);
log.debug("Add class '{}' to cache, size {}", name, cache.size());