refactoring for getBranchShortName method
refactoring for getBranchShortName method