@Override
public void init(final ComponentRepository repo, final LinkedHashMap<String, String> configuration) {
final PortfolioMaster master = new InMemoryPortfolioMaster();
final ComponentInfo info = new ComponentInfo(PortfolioMaster.class, getClassifier());
info.addAttribute(ComponentInfoAttributes.LEVEL, 1);
info.addAttribute(ComponentInfoAttributes.REMOTE_CLIENT_JAVA, RemotePortfolioMaster.class);
info.addAttribute(ComponentInfoAttributes.UNIQUE_ID_SCHEME, InMemoryPortfolioMaster.DEFAULT_OID_SCHEME);
repo.registerComponent(info, master);
if (isPublishRest()) {
repo.getRestComponents().publish(info, new DataPortfolioMasterResource(master));