I need to develop bitbucket plugin to allow block creation of branches on specified criteria. Kindly let me know Which bitbucket java Interface/Class/method do we need to use to fetch all the existing branches in a repository.