@Override
public void init(ComponentRepository repo, LinkedHashMap<String, String> configuration) {
ComponentInfo info = new ComponentInfo(VolatilityCubeDefinitionSource.class, getClassifier());
VolatilityCubeDefinitionSource base = new ConfigDBVolatilityCubeDefinitionSource(getConfigSource());
VolatilityCubeDefinitionSource bbg = new ExampleVolatilityCubeDefinitionSource();
VolatilityCubeDefinitionSource combined = new AggregatingVolatilityCubeDefinitionSource(Arrays.asList(bbg, base));
repo.registerComponent(info, combined);
if (isPublishRest()) {
repo.getRestComponents().publish(info, new DataVolatilityCubeDefinitionSourceResource(combined));
}
}