package org.kie.server.api.model;

import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;


@XmlRootElement(name="kie-containers")
@XmlAccessorType (XmlAccessType.FIELD)
public class KieContainerResourceList {
    
    @XmlElement(name="kie-container")
    private List<KieContainerResource> containers;

    public KieContainerResourceList() {
        super();
    }

    public KieContainerResourceList(List<KieContainerResource> containers) {
        super();
        this.containers = containers;
    }
    
    public List<KieContainerResource> getContainers() {
        return containers;
    }
    
    public void setContainers(List<KieContainerResource> containers) {
        this.containers = containers;
    }

}

@@ -28,16 +28,44 @@
 model;%0A%0A
+import java.util.ArrayList;%0A
 import j
@@ -540,24 +540,84 @@
    super();%0A
+        containers = new ArrayList%3CKieContainerResource%3E();%0A
     %7D%0A%0A    p

return empty list instead of null when no containers created