HJB Equations Through Backward Stochastic Differential Equations