if (message instanceof TextMessage) {
TextMessage tm = (TextMessage) message;
String valueJMSMessage = tm.getText();
if(StringUtils.isNotEmpty(valueJMSMessage)){
final SyncServeurMessageJms syncServeurMessageJms = xmlMapper.getXmlMapper().readValue(valueJMSMessage, SyncServeurMessageJms.class);
ServerStatus serverStatus = new ServerStatus();
serverStatus.setLastCheckReceived(new Date());
serverStatus.setServerName(syncServeurMessageJms.getServerName());
serverStatus.setServerIp(syncServeurMessageJms.getServerIp());
serverService.saveOrUpdateServerStatus(serverStatus, valueJMSMessage);
if (logger.isDebugEnabled()) {
logger.debug("Processed message, value: " + valueJMSMessage);