try {
InetAddress address = InetAddress.getLocalHost();
String fqdn = address.getCanonicalHostName();
// logger("Client application host is ["+fqdn+"].");
Application aplication = new Application(name, fqdn);
// all is nice and dandy
clientApplication = aplication;
} catch (UnknownHostException e) {
throw new IllegalStateException(
"Failed to determine the hostname for this host", e);