I would be more likely to simply remove the "String ret = null" and "return ret" and replace it with a simple "return null".  However, this is really a nit-picking comment and I don't believe it affects the overall impact of the patch at all.