if (endpoint.isDefault()) { log.debug("Selected IndexedEndpoint with explicit isDefault of true"); return endpoint;
for (final Endpoint endpoint : candidates) { if (hardDefault == null && endpoint instanceof IndexedEndpoint) { final Boolean flag = ((IndexedEndpoint) endpoint).isDefault(); if (flag != null) { if (flag.booleanValue()) {
protected List<Endpoint> getEndpoints( List<? extends org.opensaml.saml.saml2.metadata.Endpoint> services ) { List<Endpoint> result = new LinkedList<>(); if (services != null) { services .stream() .forEach(s -> { Endpoint endpoint = new Endpoint() .setBinding(Binding.fromUrn(s.getBinding())) .setLocation(s.getLocation()) .setResponseLocation(s.getResponseLocation()); result.add(endpoint); if (s instanceof IndexedEndpoint) { IndexedEndpoint idxEndpoint = (IndexedEndpoint) s; endpoint .setIndex(idxEndpoint.getIndex()) .setDefault(idxEndpoint.isDefault()); } } ); } return result; }