code: public Map<String, Permission> getPermissions(String tenant) {
          if (!permissions.containsKey(tenant)) {
              return new HashMap<>();
          }
          return permissions.get(tenant);
      }
docs: Get permissions configuration for tenant.
  Map key is ROLE_KEY:PRIVILEGE_KEY and value id permission.
  
  @param tenant the tenant
  @return permissions