class NewClusterMemberJoinedTask implements ClusterTask<Void> {
    private static final Logger Log = LoggerFactory.getLogger(NewClusterMemberJoinedTask.class);

    private NodeID originator;

    public NewClusterMemberJoinedTask() {
        this.originator = XMPPServer.getInstance().getNodeID();
    }

    public NodeID getOriginator() {
        return originator;
    }

    @Override
    public Void getResult() {
        return null;
    }

    @Override
    public void run() {
        Log.debug("Node {} informed us that it has joined the cluster. Firing joined cluster event for that node.", originator);
        ClusterManager.fireJoinedCluster(originator.toByteArray(), true);
    }

    @Override
    public void writeExternal(ObjectOutput out) throws IOException {
        final ExternalizableUtil externalizableUtil = ExternalizableUtil.getInstance();
        externalizableUtil.writeSerializable(out, originator);
    }

    @Override
    public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {<FILL_FUNCTION_BODY>}
}

        final ExternalizableUtil externalizableUtil = ExternalizableUtil.getInstance();
        originator = (NodeID) externalizableUtil.readSerializable(in);
    
<no_super_class>