public RecordType createOrUpdateRecordType(RecordType recordType, boolean refreshSubtypes)
throws RepositoryException, InterruptedException {
try {
RecordType newRecordType =
converter.convert(lilyProxy.createOrUpdateRecordType(converter.convert(recordType), refreshSubtypes), this);
updateRecordTypeCache(newRecordType.clone());
return newRecordType;
} catch (AvroRepositoryException e) {
throw converter.convert(e);
} catch (AvroGenericException e) {
throw converter.convert(e);