List<RepoGroupDetails> importedRepoGroups = new ArrayList<RepoGroupDetails>();
for (RepoGroupDetails createMe : repoGroups) {
String name = createMe.getName();
RepoGroup existingGroup = getRepoGroupByName(name);
if (existingGroup == null) {
existingGroup = new RepoGroup(name);
existingGroup.setDescription(createMe.getDescription());
RepoGroupType groupType = getRepoGroupTypeByName(subject, createMe.getTypeName());
existingGroup.setRepoGroupType(groupType);
// Don't let the whole report blow up if one of these fails,
// but be sure to mention it in the report.
try {
createRepoGroup(subject, existingGroup);