{
super(key, ImmutableSet.of(LOCAL, REMOTE));
final Collection<String> methods = serviceClassMethodsByPermission.get(key);
this.v1JsonRpcScopeHelper = new JsonRpcApiScopeHelper("/rpc/json-rpc/confluenceservice-v1", methods);
this.v2JsonRpcScopeHelper = new JsonRpcApiScopeHelper("/rpc/json-rpc/confluenceservice-v2", methods);
this.v1XmlRpcApiScopeHelper = new XmlRpcApiScopeHelper("/rpc/xmlrpc", Collections2.transform(methods, xmlRpcTransform("confluence1")));
this.v2XmlRpcApiScopeHelper = new XmlRpcApiScopeHelper("/rpc/xmlrpc", Collections2.transform(methods, xmlRpcTransform("confluence2")));
this.restApiScopeHelper = new RestApiScopeHelper(checkNotNull(resources));
this.downloadScopeHelper = checkNotNull(downloadScopeHelper);
this.apiResourceInfo = concat(v1JsonRpcScopeHelper.getApiResourceInfos(),