I think this isn't correct. Shouldn't this be

.setRecordGroupName(recordGroup.*getReadGroupName*)