try{
String body = message.getBody();
Locale locale = languageService.detectLocale(body);
int characters = languageService.characterCount(body, locale);
message.setNumOfCharacters(characters);
int words = languageService.wordCount(body, locale);
message.setNumOfWords(words);
counter++;
DBFactory.getInstance().updateObject(message);