purgeMethod = renderKitFactory.getClass().getMethod("purgeRenderKit", emptyParameterList);
purgeMethod.invoke(renderKitFactory, emptyParameterList);
RuntimeConfig.getCurrentInstance(_externalContext).purge();
LifecycleFactory lifecycleFactory = (LifecycleFactory) FactoryFinder.getFactory(FactoryFinder.LIFECYCLE_FACTORY);
purgeMethod = lifecycleFactory.getClass().getMethod("purgeLifecycle", emptyParameterList);
purgeMethod.invoke(lifecycleFactory, emptyParameterList);
// factories and serial factory need not be purged...
} catch (NoSuchMethodException e) {
log.error("Configuration objects do not support clean-up. Update aborted",e);