fixing to allow deployment both in Liferay and standalone