improve context's getFormatOrDefault()