Instead of defining a 'final InetAddress' here, why not "return InetAddress.getLocalHost().getHostName();"?