if (isBloomberg()) {
VolatilityCubeDefinitionSource bbg = new BloombergVolatilityCubeDefinitionSource();
VolatilityCubeDefinitionSource combined = new AggregatingVolatilityCubeDefinitionSource(Arrays.asList(bbg, base));
repo.registerComponent(info, combined);
if (isPublishRest()) {
repo.getRestComponents().publish(info, new DataVolatilityCubeDefinitionSourceResource(combined));
}
} else {
repo.registerComponent(info, base);
if (isPublishRest()) {
repo.getRestComponents().publish(info, new DataVolatilityCubeDefinitionSourceResource(base));
}
}
}