class FlowRepositoryImpl extends HibernateDaoSupport implements FlowRepository {

    @Override
    public Flow find(Long id) {
        Flow flow = (Flow) getHibernateTemplate().get(Flow.class, id);
        if (flow == null) {
            throw new FlowException("no flow with id " + id);
        }
        return flow;
    }

    public  FlowRepositoryImpl();

}