@Override public Compartment clone() { return new Compartment(this); }
/** * Creates a new {@link Compartment} inside this {@link Model} and returns it. * * @param id * the id of the new element to create * @return the {@link Compartment} object created */ public Compartment createCompartment(String id) { Compartment compartment = new Compartment(id, getLevel(), getVersion()); addCompartment(compartment); return compartment; }