class ProcessingInstructionStructureHandler implements IProcessingInstructionStructureHandler {


    boolean setProcessingInstruction;
    String setProcessingInstructionTarget;
    String setProcessingInstructionContent;

    boolean replaceWithModel;
    IModel replaceWithModelValue;
    boolean replaceWithModelProcessable;

    boolean removeProcessingInstruction;




    ProcessingInstructionStructureHandler() {
        super();
        reset();
    }




    public void setProcessingInstruction(final String target, final String content) {
        reset();
        Validate.notNull(target, "Target cannot be null");
        Validate.notNull(content, "Content cannot be null");
        this.setProcessingInstruction = true;
        this.setProcessingInstructionTarget = target;
        this.setProcessingInstructionContent = content;
    }


    public void replaceWith(final IModel model, final boolean processable) {<FILL_FUNCTION_BODY>}


    public void removeProcessingInstruction() {
        reset();
        this.removeProcessingInstruction = true;
    }




    public void reset() {

        this.setProcessingInstruction = false;
        this.setProcessingInstructionTarget = null;
        this.setProcessingInstructionContent = null;

        this.replaceWithModel = false;
        this.replaceWithModelValue = null;
        this.replaceWithModelProcessable = false;

        this.removeProcessingInstruction = false;

    }


}

        reset();
        Validate.notNull(model, "Model cannot be null");
        this.replaceWithModel = true;
        this.replaceWithModelValue = model;
        this.replaceWithModelProcessable = processable;
    
<no_super_class>