class HomingListener implements FlowManipulator {

    @Override
    public void run(List<ExecuteBuildingBlock> flowsToExecute, ExecuteBuildingBlock currentBB,
            BuildingBlockExecution execution) {

        boolean homing = execution.getVariable("homing");
        boolean calledHoming = execution.getVariable("calledHoming");
        if (homing && !calledHoming) {
            currentBB.setHoming(true);
            execution.setVariable("calledHoming", true);
        }
    }

}