List<String> unitNames = new ArrayList<String>();
// adding radiance as it's the most common, but it's not part of the standard units
unitNames.add("W.m-2.Sr-1");
UnitFormat format = UnitFormat.getInstance(Locale.ENGLISH);
for (Unit<?> unit : units) {
unitNames.add(format.format(unit));
}
List<String> choices = new ArrayList<String>();
for (String name : unitNames) {
if (name.toLowerCase().startsWith(input.toLowerCase())) {