jsonData = mapper.writeValueAsString(metrics);
} catch (IOException e) {
LOG.error("Unable to parse metrics", e);
}
if (jsonData != null) {
<BUG>emitMetricsJson(connectUrl, jsonData);

}
}</BUG>
protected String cleanupInputStream(InputStream is) throws IOException {

jsonData = mapper.writeValueAsString(metrics);
} catch (IOException e) {
LOG.error("Unable to parse metrics", e);
}
if (jsonData != null) {
return emitMetricsJson(connectUrl, jsonData);
}
return false;
}
protected String cleanupInputStream(InputStream is) throws IOException {
