LPS-43171

see: https://github.com/jonmak08/liferay-portal/pull/568#discussion-diff-8925896