[TECHNICAL-SUPPORT] LPS-32364 Document Library low performance on view document detail

Hi,

I wrote tests also.
Please do not forget to merge jhinkey javadocs:
https://github.com/jhinkey/liferay-portal/tree/LPS-32364