docs: public static AuthorizationDto fromAuthorization(Authorization dbAuthorization, ProcessEngineConfiguration engineConfiguration) {
      AuthorizationDto authorizationDto = new AuthorizationDto();
  
      authorizationDto.setId(dbAuthorization.getId());
      authorizationDto.setType(dbAuthorization.getAuthorizationType());
  
      Permission[] dbPermissions = getPermissions(dbAuthorization, engineConfiguration);
      authorizationDto.setPermissions(PermissionConverter.getNamesForPermissions(dbAuthorization, dbPermissions));
  
      authorizationDto.setUserId(dbAuthorization.getUserId());
      authorizationDto.setGroupId(dbAuthorization.getGroupId());
      authorizationDto.setResourceType(dbAuthorization.getResourceType());
      authorizationDto.setResourceId(dbAuthorization.getResourceId());
  
      return authorizationDto;
    }