public void setPlans(Set<ApiPlanBean> plans) {
        //NB: https://hibernate.atlassian.net/browse/HHH-3799
        plans.forEach(p -> p.setApiVersion(this));
        if (this.plans == null) {
            this.plans = new LinkedHashSet<>(plans);
        }  else {
            this.plans.clear();
            this.plans.addAll(plans);
        }
    }
@param plans the plans to set
manager/api/beans/src/main/java/io/apiman/manager/api/beans/apis/ApiVersionBean.java