// Remove any entries that were GC'd. The instance of the WeakKey containing the
// ServiceDelegate that was GC'd is placed on the reference queue, so we use that exact
// key value to remove the entry from the collection.
Object gcKey = null;
while ((gcKey = dynamicPortRefQueue.poll()) != null) {
WeakKey removeKey = (WeakKey) gcKey;
if (log.isDebugEnabled()) {
log.debug("Removing GC'd key from dynamic ports: " + removeKey);
}
Map<QName, EndpointDescriptionImpl> removeEntry =
dynamicEndpointDescriptions.remove(removeKey);