fixing the ad-hoc metric fetching mechanism during the pollcycle() if the buffered metrics are null
ficing the getAllMetricsAndReset to make sure it returns a Metric array that was deep-copied from the buffer map to avoid any concurrency issues
adding log4j bridge for plugin logging