ProcessDefinitionDAO processDefinitionDao = registry.getProcessDefinitionDAO(ctx.getHibernateSession());
ProcessDefinitionConfig processDefinition = processDefinitionDao.getActiveConfigurationByKey(changeRequest.getProcessDeifinitionName());
ProcessDictionaryDAO dictionaryDao = registry.getProcessDictionaryDAO(ctx.getHibernateSession());
ProcessDBDictionary dictionary = dictionaryDao.fetchProcessDictionary(processDefinition, changeRequest.getDictionaryId(), changeRequest.getLanguageCode());
if(dictionary == null)
{
dictionary = createDictionary(processDefinition, changeRequest.getDictionaryId(), changeRequest.getLanguageCode());
dictionaryDao.saveOrUpdate(dictionary);
}