hhuijser/liferay-portal — pull request #1947 by jonathanmccann (2014-06-16 21:16:13+00:00)
Title: LPS-44239

Hey Hugo,

I agree with Igor that it would be hard to simplify this down since you need to keep track of how many directories up you need to go. I source formatted it, though, so let me know if you think more needs to be done to it.

Thanks.