.setMeasurementUnit(MeasurementUnit.???)

Please do the same for other attributes that reflect some unit.