Fix compatibility with Liferay 6.2