//-------------------------------------------------------------------------
@Override
public void init(ComponentRepository repo, LinkedHashMap<String, String> configuration) throws Exception {
final HistoricalTimeSeriesProvider provider = initHistoricalTimeSeriesProvider(repo);
final ComponentInfo info = new ComponentInfo(HistoricalTimeSeriesProvider.class, getClassifier());
info.addAttribute(ComponentInfoAttributes.LEVEL, 1);
info.addAttribute(ComponentInfoAttributes.REMOTE_CLIENT_JAVA, RemoteHistoricalTimeSeriesProvider.class);
info.addAttribute(ComponentInfoAttributes.ACCEPTED_TYPES, getAcceptedTypes());
repo.registerComponent(info, provider);
if (isPublishRest()) {
repo.getRestComponents().publish(info, new DataHistoricalTimeSeriesProviderResource(provider));