// create the URL classloader
final ClassLoader urlClassloader = createURLClassLoader(context);
// check, if the reloading classloader should be used
if (isReloadingClassloaderEnabled(context)) {
final ReloadingClassLoader classloader = new ReloadingClassLoader(urlClassloader);
final FilesystemAlterationMonitor fam = new FilesystemAlterationMonitor();
org.apache.commons.jci.listeners.ReloadingListener rl = new CocoonReloadingListener();
rl.addReloadNotificationListener(classloader);