repo.getRestComponents().publish(info, new DataMarketDataSnapshotSourceResource(source));
}
}
protected MarketDataSnapshotSource initUnderlying(ComponentRepository repo, LinkedHashMap<String, String> configuration) {
MarketDataSnapshotSource source = new MasterSnapshotSource(getUnderlyingMarketDataSnapshotMaster());
if (getUnderlyingClassifier() != null) {
ComponentInfo info = new ComponentInfo(MarketDataSnapshotSource.class, getUnderlyingClassifier());
info.addAttribute(ComponentInfoAttributes.LEVEL, 1);
info.addAttribute(ComponentInfoAttributes.REMOTE_CLIENT_JAVA, RemoteMarketDataSnapshotSource.class);
repo.registerComponent(info, source);