LPS-52152 Don't fail when OSGI is not accessible

Hi Ray,

this pull request is very simple, the problem I have is OSGI and existing tests.

I tried to add an extension point into `AccessControlAdvisorImpl` (called by `AccessControlAdvice`) to fetch registered policies (`AccessControlPolicy` class) through OSGI. The problems I have is with `CounterLocalServiceTest` which starts Spring but not OSGI. When I modify it to start OSGI, tests fail on unresolved OSGI dependencies, at least on my local machine. May I ask you for an advise? Thank you!