Alternative constructions of a harmonic function for a random walk in a cone