Slight cleanup of getSubRecourcesPKAttribute function
Merge branch 'issue-107'