IMO this version is appropriate to the context and readable enough (`value` being `final` and in a local block scope).
IIRC this vaue is used for GUI display, so it might be worth converting it to String right away (though that would not solve the unification issue).