Spark Integration: Added getMetricsCollector func which went missing in rebasing