@Override
    public String getHostname()
    {
        final String fqdn = JiveGlobals.getXMLProperty( "fqdn" );
        if ( fqdn != null && !fqdn.trim().isEmpty() )
        {
            return fqdn.trim().toLowerCase();
        }

        try
        {
            return InetAddress.getLocalHost().getCanonicalHostName().toLowerCase();
        }
        catch (UnknownHostException ex)
        {
            Log.warn( "Unable to determine local hostname.", ex );
            return "localhost";
        }
    }
Simple constructor

@param startDate the server's last start time (can be null indicating
     it hasn't been started).
xmppserver/src/main/java/org/jivesoftware/openfire/spi/XMPPServerInfoImpl.java