new HashMap<String, PoolMetadata>();
for (Map.Entry<ResourceType, SchedulerForType> schedulerEntry :
schedulersForTypes.entrySet()) {
for (Map.Entry<PoolInfo, PoolInfoMetrics> poolEntry :
schedulerEntry.getValue().getPoolInfoMetrics().entrySet()) {
ResourceMetadata resourceMetadata =
poolEntry.getValue().getResourceMetadata();
// Ignore any invalid pool metrics
if (resourceMetadata == null) {
continue;
}