A variational method for a stochastic control problem in Hilbert spaces.