.pageIndex(wsRequest.mandatoryParamAsInt(Param.PAGE))
.pageSize(wsRequest.mandatoryParamAsInt(Param.PAGE_SIZE))
.search(wsRequest.param(Param.TEXT_QUERY))
.build();
}
<BUG>private WsUsersResponse buildResponse(DbSession dbSession, PermissionQuery query, PermissionTemplateDto template) {
</BUG>
List<UserWithPermissionDto> usersWithPermission = dbClient.permissionTemplateDao().selectUsers(dbSession, query, template.getId(), query.pageOffset(), query.pageSize());
int total = dbClient.permissionTemplateDao().countUsers(dbSession, query, template.getId());
<BUG>WsUsersResponse.Builder responseBuilder = WsUsersResponse.newBuilder();
</BUG>
for (UserWithPermissionDto userWithPermission : usersWithPermission) {

.pageIndex(wsRequest.mandatoryParamAsInt(Param.PAGE))
.pageSize(wsRequest.mandatoryParamAsInt(Param.PAGE_SIZE))
.search(wsRequest.param(Param.TEXT_QUERY))
.build();
}
private WsPermissions.UsersWsResponse buildResponse(DbSession dbSession, PermissionQuery query, PermissionTemplateDto template) {
List<UserWithPermissionDto> usersWithPermission = dbClient.permissionTemplateDao().selectUsers(dbSession, query, template.getId(), query.pageOffset(), query.pageSize());
int total = dbClient.permissionTemplateDao().countUsers(dbSession, query, template.getId());
UsersWsResponse.Builder responseBuilder = UsersWsResponse.newBuilder();
for (UserWithPermissionDto userWithPermission : usersWithPermission) {
