return icon;
}
private static String getMessageFromDictionary(ProcessDictionary dict, I18NSource i18NSource, String key, boolean showEditButton, boolean showDebugKey)
{
ProcessDictionaryItem dictItem = dict.lookup(key);
StringBuilder messageBuilder = new StringBuilder();
messageBuilder.append("<div id=\"editor1\">");
if(dictItem == null)
messageBuilder.append(i18NSource.getMessage("help.empty").replaceAll("\\{0\\}", key));
else
messageBuilder.append(dictItem.getValueForCurrentDate().getValue());
messageBuilder.append("</div>");
/* Add edit icon */
if(showEditButton)
{
String processDefinitionName = dict.getProcessDefinition() == null ? null : dict.getProcessDefinition().getBpmDefinitionKey();
String dictionaryId = dict.getDictionaryId();
String languageCode = i18NSource.getLocale().toString();
String dictionaryItemKey = key;
String dictionaryItemValue = dictItem == null ? "" : dictItem.getValueForCurrentDate().getValue().toString();
String escapedValue = StringEscapeUtils.escapeHtml4(dictionaryItemValue);
messageBuilder.append("<br/>");