HC upholds retired judge’s appointment