public static PeerReference serializeHost(Host host) {
        if (host == null) {
            throw new NullPointerException("Cannot transform a null value to a CORBA object");
        }

        return new PeerReference(
                host.getAddress().getHostAddress(),
                host.getPort(),
                host.getHostPath().toString(),
                host.getTimestamp(),
                host.getUUID().toString()
        );
    }