@Override
public boolean isMavenRepositorySupported(final MavenRepository mavenRepository)
throws IllegalStateException
{
final MavenShadowRepository mavenShadowRepository = mavenRepository.adaptToFacet(MavenShadowRepository.class);
if (mavenShadowRepository != null) {
return false; // shadows unsupported
}
if (!Maven2ContentClass.ID.equals(mavenRepository.getRepositoryContentClass().getId())) {
return false; // maven2 layout support only, no maven1 support