class LeaderUtils {

	// k8s environment variable responsible for host name
	private static final String HOSTNAME = "HOSTNAME";

	private LeaderUtils() {

	}

	public static String hostName() throws UnknownHostException {<FILL_FUNCTION_BODY>}

}

		String hostName = EnvReader.getEnv(HOSTNAME);
		if (StringUtils.hasText(hostName)) {
			return hostName;
		}
		else {
			return InetAddress.getLocalHost().getHostName();
		}
	
<no_super_class>