class PrivilegePolicyStoreProvider implements PolicyStoreProvider {

    @Override
    public PolicyStore getPolicyStore(Context context) {
        Subject adminSubject = context.asContext(SubjectContext.class).getCallerSubject();
        String realm = context.asContext(RealmContext.class).getResolvedRealm();

        return getPolicyStore(adminSubject, realm);
    }

    @Inject public  PrivilegePolicyStoreProvider(PrivilegeManagerFactory factory,
            @Named(POLICY_QUERY_ATTRIBUTES) Map<String, QueryAttribute> queryAttributes);

}