String systemLocale = "";
String enableUserLocale = setupManager.getSettingValue("enableUserLocale");
if (enableUserLocale != null && enableUserLocale.equalsIgnoreCase("true")) {
WorkflowUserManager workflowUserManager = (WorkflowUserManager) AppUtil.getApplicationContext().getBean("workflowUserManager");
UserDao userDao = (UserDao) AppUtil.getApplicationContext().getBean("userDao");
String username = workflowUserManager.getCurrentUsername();
User user = userDao.getUser(username);
if (user != null && user.getLocale() != null && !user.getLocale().isEmpty()) {
systemLocale = user.getLocale();
}
}