code: @Override
  	public IServiceReference[] getServiceReferences(String clazz, String filter) throws PlatformServicesException {
  		final String sourceMethod = "getServiceReferences"; //$NON-NLS-1$
  		boolean isTraceLogging = log.isLoggable(Level.FINER);
  		if (isTraceLogging) {
  			log.entering(PlatformServicesImpl.class.getName(), sourceMethod, new Object[]{clazz, filter});
  		}
  		ServiceReferenceOSGi[] refs = null;
  		try {
  			BundleContext bundleContext = Activator.getBundleContext();
  			if (bundleContext != null) {
  				ServiceReference<?>[] platformRefs = bundleContext.getServiceReferences(clazz, filter);
  				if (platformRefs != null) {
  					refs = new ServiceReferenceOSGi[platformRefs.length];
  					for (int i = 0; i < platformRefs.length; i++) {
  						refs[i] = new ServiceReferenceOSGi(platformRefs[i]);
  					}
  				}
  			}
  		} catch (InvalidSyntaxException e) {
  			throw new PlatformServicesException(e);
  		}
  		if (isTraceLogging) {
  			log.exiting(PlatformServicesImpl.class.getName(), sourceMethod, refs != null ? Arrays.asList(new IServiceReference[refs.length]) : null);
  		}
  		return refs;
  
  	}
docs: /*
  (non-Javadoc)
  
  @see org.osgi.framework.BundleContext#getServiceReferences(String clazz,
  String filter)