Adding liferay nativity jar and adapting desktop class