if (properties == null)
properties = new Hashtable();
properties.put(org.jboss.gravia.Constants.SERVICE_ID, serviceId);
properties.put(org.jboss.gravia.Constants.OBJECTCLASS, classNames);
this.currProperties = new CaseInsensitiveDictionary(properties);
this.cachedToString = updateCachedToString();
// Create the {@link ServiceRegistration} and {@link ServiceReference}
this.registration = new ServiceRegistrationWrapper(this);
this.reference = new ServiceReferenceWrapper(this);