code: private void getCapabilityEntry(ImmutableMessage message, CapabilityCallback callback) {
  
          long cacheMaxAge = Long.MAX_VALUE;
          DiscoveryQos discoveryQos = new DiscoveryQos(DiscoveryQos.NO_MAX_AGE,
                                                       ArbitrationStrategy.NotSet,
                                                       cacheMaxAge,
                                                       DiscoveryScope.LOCAL_THEN_GLOBAL);
  
          String participantId = message.getRecipient();
          localCapabilitiesDirectory.lookup(participantId, discoveryQos, callback);
      }
docs: Get the capability entry for the given message