ComponentInfo info = new ComponentInfo(ConfigSource.class, getClassifier());
info.addAttribute(ComponentInfoAttributes.LEVEL, 1);
info.addAttribute(ComponentInfoAttributes.REMOTE_CLIENT_JAVA, RemoteConfigSource.class);
repo.registerComponent(info, source);
if (isPublishRest()) {
repo.getRestComponents().publish(info, new DataConfigSourceResource(source));
}
info = new ComponentInfo(NonVersionedRedisConfigSource.class, getClassifier());
info.addAttribute(ComponentInfoAttributes.LEVEL, 1);
repo.registerComponent(info, source);