if (DEBUG)
return; }  if (DEBUG) { System.out.println("ServiceTracker.close: "+filter); }  tracked.close();  ServiceReference references[] = getServiceReferences();  Tracked outgoing = tracked; tracked = null; trackingCount = -1;   try { context.removeServiceListener(outgoing); } catch (IllegalStateException e) {  }  if (references != null) { for (int i = 0; i < references.length; i++)
    public synchronized void close()    {        if (tracked != null)        {            if (DEBUG)            {                System.out.println("ServiceTracker.close: "+filter);            }            tracked.close();            ServiceReference references[] = getServiceReferences();            Tracked outgoing = tracked;            tracked = null;            try            {                context.removeServiceListener(outgoing);            }            catch (IllegalStateException e)            {                /* In case the context was stopped. */            }            if (references != null)            {                for (int i = 0; i < references.length; i++)                {                    outgoing.untrack(references[i]);                }            }        }    }