WL-2615 Don't use an instance variable for thread state.

Current depth was held by an instance variable on the bean which would result in threading issues when multiple threads were accessing this provider.
WL-2615 Do a permission check on all resources.

We have to check permissions on all resources we output details for.
Remove commented out code.
WL-2615 Cleanup the getResourceDetail method.

Extract out local variable and have a much smaller try/catch block.
Also make sure the set is unmodifiable.
Merge pull request #2 from ox-it/WL-2615

WL-2615