return String.format("[[missing key: %s]]", key);
}
public MessageFormatter getFormatter(final String key)
{
MessageFormatter result = _barrier.withRead(new Invokable<MessageFormatter>()
{
public MessageFormatter invoke()
{
return _cache.get(key);
}
});
if (result != null) return result;
final MessageFormatter newFormatter = buildMessageFormatter(key);
_barrier.withWrite(new Runnable()
{
public void run()
{