Fix code location
Adapt to liferay versions
Use configuration