Modified recent method cache patch to improve style and robustness. Revised equals & hashcode, added equals unit test. Related to VELOCITY-453.