class SimpleModelProcessable implements IEngineProcessable {

    private final Model model;
    private final ITemplateHandler modelHandler;
    private final TemplateFlowController flowController;

    private int offset;


    SimpleModelProcessable(
            final Model model, final ITemplateHandler modelHandler, final TemplateFlowController flowController) {
        super();
        this.model = model;
        this.modelHandler = modelHandler;
        this.flowController = flowController;
        this.offset = 0;
    }


    public boolean process() {<FILL_FUNCTION_BODY>}


    ITemplateHandler getModelHandler() {
        return this.modelHandler;
    }


    Model getModel() {
        return this.model;
    }


}


        /*
         * First, check the stopProcess flag
         */
        if (this.flowController.stopProcessing) {
            return false;
        }

        /*
         * Process the queue
         */
        this.offset += this.model.process(this.modelHandler, this.offset, this.flowController);

        /*
         * Compute whether the whole model has been processed or not
         */
        return (this.offset == this.model.queueSize && !this.flowController.stopProcessing);

    
<no_super_class>