HttpServletResponse httpResponse = (HttpServletResponse)response;
String url = httpRequest.getServletPath();
if (url.equals(SETUP_URL)) {
ConfigEntity config = getDao().getConfigDao().getConfig();
if (config == null || config.getVersion() == null) {
SetupBean setupBean = getBusiness().getSetupBean();
setupBean.clear();
setupBean.setup();
logger.info("Setup was successfully completed.");
setupBean.loadDefaultSite();
}
httpResponse.sendRedirect("/");
return;
}
//startProfile();