ComponentInfo info = new ComponentInfo(HistoricalTimeSeriesSource.class, getClassifier());
info.addAttribute(ComponentInfoAttributes.LEVEL, 1);
info.addAttribute(ComponentInfoAttributes.REMOTE_CLIENT_JAVA, RemoteHistoricalTimeSeriesSource.class);
repo.registerComponent(info, source);
if (isPublishRest()) {
repo.getRestComponents().publish(info, new DataHistoricalTimeSeriesSourceResource(source));
}
info = new ComponentInfo(NonVersionedRedisHistoricalTimeSeriesSource.class, getClassifier());
info.addAttribute(ComponentInfoAttributes.LEVEL, 1);
repo.registerComponent(info, source);