private Map<String, EndpointDescription> createStaticEndpointDescriptions( EndpointDefinitionsProvider provider) { Map<String, EndpointDescription> descs = new HashMap<>(); for (EndpointDefinition definition : provider.getStaticEndpointDefinitions()) { descs.put(definition.getName(), new EndpointDescription(definition, endpointType)); } return descs; }
public Set<EndpointDefinition> getStaticEndpointDefinitions() { return Collections.unmodifiableSet(endpointDefinitionsProvider.getStaticEndpointDefinitions()); }