Patch Set 1: I would prefer that you didn't submit this

I think we could/should reuse the input validator that can be obtained using

ValidationUtils.getRefNameInputValidator(repo, refPrefix)

for this.