LPS-47852

Same pull than https://github.com/sergiogonzalez/liferay-portal/pull/1641 but solved a rebase problem at VerifyDocumentLibrary