long start = 0L;
if (m_perfmon) {
start = System.currentTimeMillis();
}
// first we ask the cache if there is an index for our request (class and filter combination)
FilterIndex filterIndex = m_cache.hasFilterIndexFor(clazz, filter);
if (filterIndex != null) {
List /* <ServiceReference> */ result = filterIndex.getAllServiceReferences(clazz, filter);
Iterator iterator = result.iterator();
while (iterator.hasNext()) {
ServiceReference reference = (ServiceReference) iterator.next();
String[] list = (String[]) reference.getProperty(Constants.OBJECTCLASS);
for (int i = 0; i < list.length; i++) {