class PropertyClusterEventTask implements ClusterTask<Void> {
    private Type event;
    private String key;
    private String value;
    private boolean isEncrypted;

    public static PropertyClusterEventTask createPutTask(String key, String value, boolean isEncrypted) {
        PropertyClusterEventTask task = new PropertyClusterEventTask();
        task.event = Type.put;
        task.key = key;
        task.value = value;
        task.isEncrypted = isEncrypted;
        return task;
    }

    public static PropertyClusterEventTask createDeleteTask(String key) {
        PropertyClusterEventTask task = new PropertyClusterEventTask();
        task.event = Type.deleted;
        task.key = key;
        return task;
    }

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

    @Override
    public void run() {
        if (Type.put == event) {
            JiveProperties.getInstance().localPut(key, value, isEncrypted);
        }
        else if (Type.deleted == event) {
            JiveProperties.getInstance().localRemove(key);
        }
    }

    @Override
    public void writeExternal(ObjectOutput out) throws IOException {<FILL_FUNCTION_BODY>}

    @Override
    public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
        event = Type.values()[ExternalizableUtil.getInstance().readInt(in)];
        key = ExternalizableUtil.getInstance().readSafeUTF(in);
        if (ExternalizableUtil.getInstance().readBoolean(in)) {
            value = ExternalizableUtil.getInstance().readSafeUTF(in);
            isEncrypted = ExternalizableUtil.getInstance().readBoolean(in);
        }
    }

    private static enum Type {
        /**
         * Event triggered when a system property was added or updated in the system.
         */
        put,
        /**
         * Event triggered when a system property was deleted from the system.
         */
        deleted
    }
}

        ExternalizableUtil.getInstance().writeInt(out, event.ordinal());
        ExternalizableUtil.getInstance().writeSafeUTF(out, key);
        ExternalizableUtil.getInstance().writeBoolean(out, value != null);
        if (value != null) {
            ExternalizableUtil.getInstance().writeSafeUTF(out, value);
            ExternalizableUtil.getInstance().writeBoolean(out, isEncrypted);
        }
    
<no_super_class>