Liferay Portal sample solution for LPS tickets LPS-35280 and LPS-37869.