Added getRelatedRecords