String[] clazzes = (String[]) serviceReg.getReference().getProperty(Constants.OBJECTCLASS);
String[] clazzes = ((ServiceRegistrationImpl) serviceReg).clazzes;
	public void publishService(BundleContext context, ServiceRegistration serviceReg) {		// Add the ServiceRegistration to the list of Services published by BundleContext.		ArrayList contextServices = (ArrayList) publishedServicesByContext.get(context);		if (contextServices == null) {			contextServices = new ArrayList(10);			publishedServicesByContext.put(context, contextServices);		}		contextServices.add(serviceReg);		// Add the ServiceRegistration to the list of Services published by Class Name.		String[] clazzes = (String[]) serviceReg.getReference().getProperty(Constants.OBJECTCLASS);		int size = clazzes.length;		for (int i = 0; i < size; i++) {			String clazz = clazzes[i];			ArrayList services = (ArrayList) publishedServicesByClass.get(clazz);			if (services == null) {				services = new ArrayList(10);				publishedServicesByClass.put(clazz, services);			}			services.add(serviceReg);		}		// Add the ServiceRegistration to the list of all published Services.		allPublishedServices.add(serviceReg);	}