Sorry, but I can't see the atomicity problem here. The variable <code>format</code> is local and the map <code>mimeToFormat</code> doesn't change after the component's initialization. So what could go wrong here?