class RemoveNodeTask extends NodeTask
{
    private static final Logger log = LoggerFactory.getLogger(RemoveNodeTask.class);

    /**
     * This no-argument constructor is provided for serialization purposes. It should generally not be used otherwise.
     */
    public RemoveNodeTask()
    {
    }

    /**
     * Constructs a new task that removes a specific node from a pubsub node.
     *
     * @param node The pubsub node that this task relates to.
     */
    public RemoveNodeTask(@Nonnull final Node node)
    {
        super(node);
    }

    @Override
    public void run()
    {<FILL_FUNCTION_BODY>}
}

        log.debug("[TASK] Removing node - nodeID: {}", getNodeId());

        final Optional<PubSubService> optService = getServiceIfLoaded();

        // This will only occur if a PEP service is not loaded on this particular cluster node. We can safely do nothing
        // in this case since any changes that might have been applied here will also have been applied to the database
        // by the cluster node where this task originated, meaning that those changes get loaded from the database when
        // the pubsub node is retrieved from the database in the future (OF-2077)
        if (!optService.isPresent()) {
            return;
        }

        optService.get().removeNode(getNodeId());
    
<methods>public java.lang.String getNodeId() ,public Optional<org.jivesoftware.openfire.pubsub.Node> getNodeIfLoaded() ,public java.lang.Void getResult() ,public Optional<org.jivesoftware.openfire.pubsub.PubSubService> getServiceIfLoaded() ,public org.jivesoftware.openfire.pubsub.Node.UniqueIdentifier getUniqueNodeIdentifier() ,public void readExternal(java.io.ObjectInput) throws java.io.IOException, java.lang.ClassNotFoundException,public void writeExternal(java.io.ObjectOutput) throws java.io.IOException<variables>protected java.lang.String nodeId,protected java.lang.String serviceId,protected transient org.jivesoftware.openfire.pubsub.Node.UniqueIdentifier uniqueNodeIdentifier