final long count = settingRepository.count();
if (count == 0) {
try {
// import data from init files
List<Pair<String, String>> importData = (List) context.getApplicationContext().getBean("initial-data");
final DbLib dbLib = new DbLib();
for (Pair<String, String> pair : importData) {
final ServletContext servletContext = context.getServlet().getServletContext();
final String appPath = context.getAppPath();
final String filePath = pair.one();
final String filePrefix = pair.two();
Log.warning(Geonet.DB, "Executing SQL from: " + filePath + " " + filePrefix);
dbLib.insertData(servletContext, context, appPath, filePath, filePrefix);
}
String siteUuid = UUID.randomUUID().toString();
context.getBean(SettingManager.class).setSiteUuid(siteUuid);
// Reload services which may be defined in