#186 added applySourceReference and applySourceTransaction