@Override
protected void validateMemberRepository(final Repository repository)
throws InvalidGroupingException
{
if (repository.getRepositoryKind().isFacetAvailable(P2CompositeGroupRepository.class)) {
throw new InvalidGroupingException(String.format(
"Repository '%s' cannot be grouped as P2 composite groups are not supported as members of P2 legacy groups",
repository.getName()
));
}
super.validateMemberRepository(repository);