}
private boolean checkDBWrite() {
SettingRepository settingsRepo = gc.getBean(SettingRepository.class);
try {
Setting newSetting = settingsRepo.save(new Setting().setName("DBHeartBeat").setValue("value"));
settingsRepo.flush();
settingsRepo.delete(newSetting);
return true;
} catch (Exception x) {
logger.info("DBHeartBeat Exception: " + x.getMessage());