}
@Override
public String format(Number value, Integer languageId, Integer classId) {
Language language = languageService.getById(languageId);
NumberFormat numberFormat = null;
if(language!=null && language.getLocale()!=null){
numberFormat = NumberFormat.getInstance(language.getLocale());
}else{
numberFormat = NumberFormat.getInstance();
}
return numberFormat.format(value)+" "+getUnit(languageId, classId);
}