working version with liferay sdk