ResourceAuthorizationProvider {
// resource parameter present so that other AuthorizationProviders (e.g.
// LocalGroupResourceAuthorizationProvider) has the same constructor params.
public HadoopGroupResourceAuthorizationProvider(String resource, PolicyEngine policy) throws IOException {
this(policy, new HadoopGroupMappingService(
Groups.getUserToGroupsMappingService(new Configuration())));
}