ComponentInfo info = new ComponentInfo(HolidaySource.class, getClassifier());
info.addAttribute(ComponentInfoAttributes.LEVEL, 1);
info.addAttribute(ComponentInfoAttributes.REMOTE_CLIENT_JAVA, RemoteHolidaySource.class);
repo.registerComponent(info, source);
if (isPublishRest()) {
repo.getRestComponents().publish(info, new DataHolidaySourceResource(source));
}
info = new ComponentInfo(NonVersionedRedisHolidaySource.class, getClassifier());
info.addAttribute(ComponentInfoAttributes.LEVEL, 1);
repo.registerComponent(info, source);