fixes #5279
Merge pull request #5424 from dotCMS/issue-5279-stackoverflow-dep-manager

fixes #5279