private LookupCacheImpl createLookupCache(ServiceTemplate tmpl,ServiceItemFilter filter,ServiceDiscoveryListener listener,long leaseDuration) throws RemoteException {
  if (tmpl == null)   tmpl=new ServiceTemplate(null,null,null);
  LookupCacheImpl cache=new LookupCacheImpl(tmpl,filter,listener,leaseDuration);
synchronized (caches) {
    caches.add(cache);
  }
  logger.finest("ServiceDiscoveryManager - LookupCache created");
  return cache;
}

private LookupCacheImpl createLookupCache ( ServiceTemplate tmpl , ServiceItemFilter filter , ServiceDiscoveryListener listener , long leaseDuration ) throws RemoteException { if ( tmpl == null ) tmpl = new ServiceTemplate ( null , null , null ) ; LookupCacheImpl cache = new LookupCacheImpl ( tmpl , filter , listener , leaseDuration ) ; synchronized ( caches ) { caches . add ( cache ) ; } logger . finest ( "ServiceDiscoveryManager - LookupCache created" ) ; return cache ; }
creates a lookupcache with specific lease duration .
