Repaired getBranchManager() query