editor.setLanguageMessages(null);
editor.setDefaultLanguage(null);
} else {
Map<Language, String> messages = new HashMap<Language, String>();
for (String langCode : processConfig.getMessages().keySet()) {
Language lang = new Language();
lang.setCode(langCode);
messages.put(lang, processConfig.getMessages().get(langCode));
}
editor.setLanguageMessages(messages);
editor.setDefaultLanguage(processConfig.getDefaultLanguage());
}