fixes #5053
Merge pull request #5054 from dotCMS/issue-5053-2.5.4-needs-to-work-with-java6

fixes #5053