RepositorySearchRequest with description property

Hello everyone,
Several weeks ago I updated my plugin for no-native description field for repositories (old Bitbucket Server versions don’t have native description field) to migrate on native field.
I have problem with repository searching, because in old version plugin I used Active Objects to find repository by description… On new one, I can’t find native solution to do that.

I found three solution:

  1. Use native searching (if exist)
  2. Get all repositories and use foreach
  3. Use database query (but I don’t know how to deal with database query in native tables ex. dbo.repositories by using Java)

Can anyone help me?

My best way to do that:
Use RepositoryService, call findAll to get pages with repositories and use foreach with String.contains.