class Flow {

    public byte[] prepareReplay() {
        setReplayTime(currentTime());
        incrementReplayCount();
        clearErrorStatus();
        for (FlowPart part: getParts()){
            if (part.getStatus().equals(FlowStatus.ERROR)){
                part.setFlowPartMessageText(null);
            }
        }
        return getPacket();
    }

    public  Flow();
    public  Flow(String application);

}