);
}
private Endpoint getEndpointByLabel(String label) {
Endpoint endpoint = new Endpoint();
endpoint.setName(configurationService.getStringConfiguration("ldcache.endpoint."+label+".name"));
endpoint.setPriority(configurationService.getIntConfiguration("ldcache.endpoint." + label + ".prio"));
endpoint.setType(configurationService.getStringConfiguration("ldcache.endpoint." + label + ".provider"));
endpoint.setUriPattern(configurationService.getStringConfiguration("ldcache.endpoint." + label + ".pattern"));
endpoint.setEndpointUrl(configurationService.getStringConfiguration("ldcache.endpoint." + label + ".service"));
endpoint.setDefaultExpiry(configurationService.getLongConfiguration("ldcache.endpoint." + label + ".expiry"));
endpoint.setActive(configurationService.getBooleanConfiguration("ldcache.endpoint." + label + ".active"));
endpoint.setContentTypes(new HashSet<ContentType>(
MarmottaHttpUtils.parseAcceptHeader(
configurationService.getStringConfiguration("ldcache.endpoint." + label + ".contenttype",""))
));
return endpoint;