Adding helper code for association contracts.
Merge branch 'AssociationContracts'