public static EndpointEntry lookup(Endpoint ep){
synchronized (endpointTable) {
    EndpointEntry entry=endpointTable.get(ep);
    if (entry == null) {
      entry=new EndpointEntry(ep);
      endpointTable.put(ep,entry);
      if (gcLatencyRequest == null) {
        gcLatencyRequest=GC.requestLatency(gcInterval);
      }
    }
    return entry;
  }
}

public static EndpointEntry lookup ( Endpoint ep ) { synchronized ( endpointTable ) { EndpointEntry entry = endpointTable . get ( ep ) ; if ( entry == null ) { entry = new EndpointEntry ( ep ) ; endpointTable . put ( ep , entry ) ; if ( gcLatencyRequest == null ) { gcLatencyRequest = GC . requestLatency ( gcInterval ) ; } } return entry ; } }
look up the endpointentry for the given endpoint . an entry is created if one does not already exist .
