} catch (IOException io) {
LOG.debug("Caught IOException on fetching metrics. " + io.getMessage());
}
TimelineMetricsCacheValue value = null;
if (timelineMetrics != null && !timelineMetrics.getMetrics().isEmpty()) {
<BUG>Map<String, TimelineMetric> cacheValue =
new HashMap<String, TimelineMetric>(timelineMetrics.getMetrics().size());
for (TimelineMetric metric : timelineMetrics.getMetrics()) {
cacheValue.put(metric.getMetricName(), metric);
}</BUG>
value = new TimelineMetricsCacheValue(

} catch (IOException io) {
LOG.debug("Caught IOException on fetching metrics. " + io.getMessage());
}
TimelineMetricsCacheValue value = null;
if (timelineMetrics != null && !timelineMetrics.getMetrics().isEmpty()) {
value = new TimelineMetricsCacheValue(
