Matlis duals of local cohomology modules and their endomorphism rings