M1LayoutedM2ShadowRepositoryConfiguration exRepoConf = new M1LayoutedM2ShadowRepositoryConfiguration(exRepo);
exRepoConf.setMasterRepositoryId(masterId);
shadow.configure(repoConf);
shadow.synchronizeWithMaster();
getRepositoryRegistry().addRepository(shadow);
}