AUI-989 1.0.x backport

https://issues.liferay.com/browse/AUI-989