Section 17(2) in The Transfer Of Property Act, 1882
(2)This section shall not affect any direction for accumulation for the purpose of—(i)the payment of the debts of the transferor or any other person taking any interest under the transferor; or(ii)the provision of portions for children or remoter issue of the transferor or of any other person taking any interest under the transfer; or(iii)the preservation or maintenance of the property transferred,and such direction may be made accordingly.