// Loop detected in type hierarchy, log a warning about this
log.warn(formatSupertypeLoopError(subtype, parents));
}
}
} catch (RepositoryException e) {
throw new RepositoryException("Error while refreshing subtypes of record type " + recordType.getName(), e);
}
parents.pop();
return updatedRecordType;