/** * Verify the candidate's Binding attribute, if set, is among the set in the supplied criterion. * * @param bindings the bindings to allow * @param endpoint the candidate endpoint * * @return true iff the candidate has no Binding, or its Binding is permitted */ private boolean checkBindingCriterion(@Nonnull final BindingCriterion bindings, @Nonnull final EndpointType endpoint) { if (endpoint.getBinding() != null) { if (!bindings.getBindings().contains(endpoint.getBinding())) { log.debug("{} Candidate endpoint binding '{}' not permitted by input criteria", getLogPrefix(), endpoint.getBinding()); return false; } } return true; }