public void setMasterRepository(Repository masterRepository)
throws IncompatibleMasterRepositoryException
{
// we allow only MavenRepository instances as masters
if (!masterRepository.getRepositoryKind().isFacetAvailable(MavenRepository.class)) {
throw new IncompatibleMasterRepositoryException(
"This shadow repository needs master repository which implements MavenRepository interface!", this,
masterRepository.getId());
}
super.setMasterRepository(masterRepository);