Implementing detectTransferRestriction