if (gangliaMap.size() > 0) {
GangliaPropertyProvider gpp = type.equals (Resource.Type.Component) ?
new GangliaComponentPropertyProvider(gangliaMap,
streamProvider, sslConfig, gangliaHostProvider,
clusterNamePropertyId, componentNamePropertyId) :
new GangliaHostComponentPropertyProvider(gangliaMap,
streamProvider, sslConfig, gangliaHostProvider,
clusterNamePropertyId, hostNamePropertyId, componentNamePropertyId);
gpp.populateResources(resources, request, predicate);
} else {