if (resourceMetadata == null) {
continue;
}
String stringifiedPoolInfo =
PoolInfo.createStringFromPoolInfo(poolEntry.getKey());
PoolMetadata poolMetadata =
poolNameMetadataMap.get(stringifiedPoolInfo);
if (poolMetadata == null) {
poolMetadata = new PoolMetadata(stringifiedPoolInfo);
poolNameMetadataMap.put(stringifiedPoolInfo, poolMetadata);
}
poolMetadata.addResourceMetadata(schedulerEntry.getKey().toString(),
resourceMetadata);
}
}
return new ArrayList<PoolMetadata>(poolNameMetadataMap.values());
}