2.0 Let's move to Liferay 6.2
2.0 Extract permissions to be checked outside the main code
WIP - extract permissions from FSRepo