@Override
public String processHashVariable(String variableKey) {
AppDefinition appDef = (AppDefinition) getProperty("appDefinition");
if (appDef != null) {
ApplicationContext appContext = AppUtil.getApplicationContext();
MessageDao messageDao = (MessageDao) appContext.getBean("messageDao");
Message message = messageDao.loadByMessageKey(variableKey, AppUtil.getAppLocale(), appDef);
if (message != null) {
return message.getMessage();
}
}
return null;