changed liferay code in order to avoid errors that are not relevant to the project