Closes #5560 Class Registry::_duplicate call for getObject returns false it will cause an error Added additional optimizations.
Closes #5560 Class Registry::_duplicate call for getObject returns false it will cause an error
Added additional optimizations.

git-svn-id: d6601dcf5e7dd084c06453dcde34b6bc00f2d257@7734 3807eeeb-6ff5-0310-8944-8be069107fe0

marciotrindade/cake_on_rails,marciotrindade/cake_on_rails