@Override
public void afterUpdate()
{
if (Configuration.getInstance().isCalendarDomainValid() == false) {
// Force to edit configuration value 'calendar domain'.
final ConfigurationDao configurationDao = Registry.instance().getDao(ConfigurationDao.class);
configurationDao.checkAndUpdateDatabaseEntries();
final ConfigurationDO configurationDO = configurationDao.getEntry(ConfigurationParam.CALENDAR_DOMAIN);
final ConfigurationEditPage configurationEditPage = new ConfigurationEditPage(new PageParameters().add(
AbstractEditPage.PARAMETER_KEY_ID, configurationDO.getId()));
configurationEditPage.setReturnToPage(new SystemUpdatePage(new PageParameters()));
throw new RestartResponseException(configurationEditPage);
}